Replies: 1 comment
-
I think one way to do dialogs without JS would be with different URLs for the modal open/closed. In nextJS, this can be acheived with parallel routes I think that is outside the scope of this library and would be relatively simple for a dev to implement on their own, as it would be mostly styling a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some of the components could function in
noscript
environments by changing the HTML elements used.For example, the radio cards, checkbox cards, checkbox, and switch are implemented as
<button>
s instead of<input type="radio">
and<input type="checkbox">
, meaning they don't function innoscript
environments.The dropdown and popover use a
<button>
witharia-expanded
, meaning the content in the dropdown/popover is not accessible in anoscript
environement, but a functionally equivalent pattern could be achieved using<details>
and<summary>
which would function without JS.The dialog and alert dialog are tough, as I'm not familair with any html-driven pattern that can provide their functionality, but if it exists feel free to share!
I do understand that for client rendered components, these changes would make no difference as the components wouldn't be visible at all. But, in server rendered environements, this has real implications for users and causes degraded functionality for situations where JS is not available.
Beta Was this translation helpful? Give feedback.
All reactions