Skip to content

feat: status color classes for notification#10989

Merged
jouni merged 2 commits intomainfrom
feat/notification-status-colors
Feb 2, 2026
Merged

feat: status color classes for notification#10989
jouni merged 2 commits intomainfrom
feat/notification-status-colors

Conversation

@jouni
Copy link
Copy Markdown
Member

@jouni jouni commented Jan 19, 2026

Fixes #10605

Add class names that can be applied to notifications with both Lumo and Aura:

  • .v-info
  • .v-success
  • .v-warning
  • .v-error

With Lumo, an additional .v-primary class name can be added used together with the status color classes, to get the same style as the existing theme attribute variants. For example, class="v-success v-primary" produces the same result as theme="success", and class="v-primary" equals theme="contrast". The class names are intended to replace the theme attribute variants.

With Aura, the status color classes are aliases for the existing .aura-accent-blue|green|yellow|red class names.

@jouni jouni force-pushed the feat/notification-status-colors branch from 8146122 to bdd850d Compare January 23, 2026 09:06
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@vursen vursen left a comment

Choose a reason for hiding this comment

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

I struggled to understand the logic behind the renamings at first, but then it came together. One important insight is that this change aligns notification variants with button variants in Lumo. The "error" button isn't "primary" by default in Lumo while the "error" notification was, which was inconsistent. LGTM.

@jouni jouni merged commit 4403a9d into main Feb 2, 2026
10 checks passed
@jouni jouni deleted the feat/notification-status-colors branch February 2, 2026 11:23
@vaadin-bot
Copy link
Copy Markdown
Collaborator

This ticket/PR has been released with Vaadin 25.1.0-alpha5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add more Aura style variants for Notification

3 participants