Skip to content

Update Notice component design #67662

Open
@annchichi

Description

@annchichi

What problem does this address?

Heya @jameskoster
Coming from the Woo team, we discussed the notice components from both the WordPress Design System (WPDS) and our Woo library. While we aim to align with the design system as much as possible, we'd like to discuss some specific considerations for inline notice usage.

Current status
WordPress Design System (WPDS) banner notice

  • Primary use case: page-level alerts above content

Woo's inline notice

  • Developed specifically for Woo UI integration (e.g., within settings sections)

Observations on Current WPDS
Design elements

  • Banner notices have a larger "X" close button
  • Informational variant currently lacks background styling

Accessibility:

  • The current Error banner notice may need to be reviewed for color contrast. For example, it shows text and background contrast ratios (APCA just passes at 60). The button and background contrast is a bit low here.
  • Text and button contrast against red background requires improvement

What is your proposed solution?

Proposed enhancements
We'd like to suggest the following additions to the WP notice component:

  • Option to remove left border when needed
  • Have variants for inline usage
  • Support for optional icons (as currently implemented in Woo's library)
  • Exploring the inline notice in Figma a bit and left some notes for you.
    This is for sure not final but want to bring the visibility to you and get your feedback on direction first before we move further. Or need to follow WPDS button style. Then Magda (I dont' know why I can't tag your name) and I will continue to work on it.

Note
We can reuse Magda's proposed badge component colors:

  • Reuse the newest Gutenberg color mixins
  • Provides consistent, easier implementation for developers

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Design SystemIssues related to the system of combining components according to best practices.Needs DesignNeeds design efforts.[Type] EnhancementA suggestion for improvement.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions