Background
- Description: current warning message #fc3 color is not contrasted enough for both border and icon. We should update it or use other more contrast yellow so the icon is at least readable. We should implement the same systematic solution for all our messages (error, success, warning and notice)
- History: describe or link to prior discussions related to this component
- Known use case(s): in almost all the cases the warning message (and rest of states) appears on white background but in some cases it could appear on light gray or blue backgrounds.
- Considerations: we need all message states to be contrasted enough. Also we should follow the DSG if we finally redesign the message component.
User stories
- As a user I need the message box to be visible enough.
- As a user I need the feedback icon in the message to be visible enough.
Previous implementations
- Codex demo: message component was created in Codex in T284843 in this demo page
- Design style guide: message component was defined in the design style guide
- OOUI: you can check the OOUI demo
Open questions
Add here the questions to be answered in order to design and implement the component
Possible solutions
Some explorations to improve the warning (and the rest of message states) have been created in this Figma file. The ones more aligned with the DSG are the following:
Option1: use #ac6600 for border and icon colors | Option2: use a new yellow color (e.g. #edab00) although it's not enough contrast (2.02:1) | Option3: use #ac6600 for border and the new #edab00 for the icon |
Proposal chosen to be implemented
Option3: use #ac6600 for border and the new #edab00 for the icon |
Design spec
Acceptance criteria (or Done)
Design
- Add new warning color in T322833
- Update border color tokens in the library to the darkest tone T324449
- Update the Message spec sheet and add it in this task
- Update the message component in the Figma library and publish the library:
Code
- Update message in Codex
- New #edab00 for Yellow600 warning
- Update border colors to the darkest tones T324449
- Add new #096450 for Green700
- Update message in OOUI
- Update colors in WikimediaUI Base
- Make new WikimediaUI Base release and pull-through