Background
When vertically aligning an icon or thumbnail with multiple lines of text, it is best to top align them with the text to improve readability.
Vertically centering breaks down with >2 lines of text, making it harder to associate the visual element with the text.
Goal
We'd like to apply this recommendation in Codex, which for now would require adjusting the MenuItem component.
Icons and thumbnails within menu options are currently center-aligned, which could hinder readability. Instead, both should be top-aligned with their labels:
Find relevant design specifications in this Figma frame |
Notes:
Simply changing the item's alignment from center to top or baseline makes the icons and thumbnails to not appear correctly center aligned with the menu item label (see screenshots below). We should find a way to correct this. In the designs, we introduced some extra pixels of padding at the top and bottom of the icon, at the top of the thumbnail in order to align them with the MenuItem label's content box.