Skip to content

docs: update notification examples to support both Lumo and Aura#5228

Merged
web-padawan merged 5 commits intomainfrom
docs/notification-replace-lumo
Feb 25, 2026
Merged

docs: update notification examples to support both Lumo and Aura#5228
web-padawan merged 5 commits intomainfrom
docs/notification-replace-lumo

Conversation

@web-padawan
Copy link
Member

  • Replaced LUMO_ variants with new unprefixed variants that are supported in Aura
  • Removed "contrast" variant mention and replaced usage of "contrast" in other examples
  • Replaced "primary" variant example with "info" variant supported by Lumo and Aura
  • Replaced margin with slot="end" to make buttons in notifications look better
  • Added min-width on layouts to add space between text and buttons in Lumo
  • Removed usage of tertiary-inline variant from buttons in notification examples
  • Updated notifications-popup example - replaced ContextMenu with Popover
  • Simplified the notification-rich example (last notification didn't look good in Aura)
    • IMO, 3 notifications with icons and avatar is enough to showcase rich content
  • Added theme switcher, except for notifications-popup example using badge

Comment on lines 20 to 23
// tag::snippet[]


// tag::snippet[]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate snippet start

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

{/* tag::snippet[] */}
<Notification
theme="contrast"
theme="warning"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making this a warning feels a bit off, as the notification here would just be displayed as intented, it's not an exceptional occurrence. Maybe just use the default variant.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, updated.

<!-- tag::snippet[] -->
<vaadin-notification
theme="contrast"
theme="warning"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the best practices examples, was there a technical limitation on why we can't have the theme switcher there? IMO not so relevant to be able to switch themes in those, but it feels a bit inconsistent at first.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added theme switcher and updated examples to use horizontal layout to make them look better in Aura.

|Lumo
|Lumo, Aura

|`info`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any benefit to still listing primary? I assume info should be used instead from now on?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. Removed mention of "primary".

@web-padawan web-padawan force-pushed the docs/notification-replace-lumo branch from 7df1fb4 to 1bbbb87 Compare February 25, 2026 13:52
@web-padawan web-padawan removed the request for review from vursen February 25, 2026 14:48
@web-padawan web-padawan merged commit 5f9cbc7 into main Feb 25, 2026
4 checks passed
@web-padawan web-padawan deleted the docs/notification-replace-lumo branch February 25, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants