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

Inline Notification component #7961

Open
rolfsmeds opened this issue Oct 9, 2024 · 1 comment
Open

Inline Notification component #7961

rolfsmeds opened this issue Oct 9, 2024 · 1 comment
Labels
component-idea enhancement New feature or request

Comments

@rolfsmeds
Copy link
Contributor

rolfsmeds commented Oct 9, 2024

An inline (i.e. non-overlay) alternative to the Notification component, for when you want to show a notification / alert / status message inline.

Image

  • Theme variants for info, error, warning and success
  • Title, content (text or elements), maybe an icon slot, maybe a footer for buttons, maybe a "dismiss" button
  • ARIA semantics: role="alert" and aria-live="polite" by default, but configurable to aria-live="assertive"
@rolfsmeds rolfsmeds added enhancement New feature or request component-idea labels Oct 9, 2024
@knoobie
Copy link
Contributor

knoobie commented Oct 9, 2024

Note from my previous attempts to build such a component for our applications - I call it alert:

  • Header (like Dialog) might be really cool - especially to provide rich content and a close button (to the right / end)
  • Footer (like Dialog) is a good place for buttons :) (like you already said)
  • We have a "fade-in" theme to let it appear more smoothly

Example from our screenshot tests:

grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component-idea enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants