Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal widget #194

Open
8 of 10 tasks
Tracked by #130 ...
nexushoratio opened this issue Nov 8, 2023 · 2 comments
Open
8 of 10 tasks
Tracked by #130 ...

Modal widget #194

nexushoratio opened this issue Nov 8, 2023 · 2 comments
Labels
enhancement New feature or request library For libraries

Comments

@nexushoratio
Copy link
Owner

nexushoratio commented Nov 8, 2023

Likely just a renaming of the Info widget, though with more intent.

  • Widget enhancements #190
  • widget adapters for common types #191
  • ARIA roles to keep in mind
    • Modal
    • Base implementation
    • aria-labelledby (element id) OR aria-label (text)
    • aria-describedby (element id) (via documentation)
    • trap TAB Modal widget #194 (comment)
    • Should the API require header with label stuff and a close button, or let that come with later content? Maybe fail build() and/or show() if not present?
    • Address this: If a variable holding a widget is set to a new value, the previous widget should be explicitly destroyed.
@nexushoratio nexushoratio added enhancement New feature or request library For libraries labels Nov 8, 2023
@nexushoratio nexushoratio self-assigned this Nov 19, 2023
@nexushoratio
Copy link
Owner Author

nexushoratio commented Nov 19, 2023

From <dialog> on MDN:

The <dialog> element is exposed by browsers in a manner similar to custom dialogs that use the ARIA role="dialog" attribute. elements invoked by the showModal() method implicitly have aria-modal="true",

nexushoratio pushed a commit that referenced this issue Nov 22, 2023
nexushoratio pushed a commit that referenced this issue Nov 24, 2023
Currently automatically called after build() and before show() and users may
call explicitly.

Issue #194.

␄
nexushoratio pushed a commit that referenced this issue Nov 26, 2023
@nexushoratio
Copy link
Owner Author

Not sure how to capture the TAB key. Mostly because of wanting to make sure it is compatible with VM.shortcut

Putting this on the back burner for now.

@nexushoratio nexushoratio removed their assignment Nov 26, 2023
@nexushoratio nexushoratio self-assigned this Jan 9, 2024
nexushoratio pushed a commit that referenced this issue Jan 14, 2024
Similar to what we did for `Layout`.

Issue #194.

␄
nexushoratio pushed a commit that referenced this issue Jan 17, 2024
@nexushoratio nexushoratio removed their assignment Jan 18, 2024
nexushoratio pushed a commit that referenced this issue Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request library For libraries
Projects
None yet
Development

No branches or pull requests

1 participant