Skip to content

Conversation

@fabiankaegy
Copy link
Member

Trac ticket: https://core.trac.wordpress.org/ticket/64548


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

Update all notice styles to match Gutenberg's component patterns and
the WordPress Design System specifications.

**Base Notice Styles:**
- Border: 4px left border only (removed generic border)
- Box shadow: removed for cleaner appearance
- Padding: 8px 12px (was 1px 12px)
- Typography: 13px/20px, color #1e1e1e (gray-900)

**Notice Type Colors:**
- Info: #3858e9 border, transparent background
- Success: #4ab866 border, #eff9f1 background
- Warning: #f0b849 border, #fef8ee background
- Error: #cc1818 border, #fcf0f0 background

**Dismiss Button:**
- Size: 24px × 24px (was 20px × 20px)
- Position: top 8px, right 12px (improved alignment)
- Color: #1e1e1e (was #787c82)
- Icon size: 20px/24px (was 16px/20px)
- Focus: Gutenberg-style ring using var(--wp-admin-theme-color)
- Hover: opacity 0.7

**Links in Notices:**
- Color: var(--wp-admin-theme-color)
- Hover: var(--wp-admin-theme-color-darker-10)
- Focus: proper focus ring with var(--wp-admin-border-width-focus)

**Spacing:**
- Dismissible notices: 48px right padding (was 38px)
- Provides 24px gap between content and dismiss button

See: https://core.trac.wordpress.org/ticket/64308
@github-actions
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props fabiankaegy.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

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.

1 participant