You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently use custom icon and svg macros to reference user interface buttons in the docs.
AsciiDoc syntax:
Click icon:settings[name="Settings"] to configure your settings.
Click svg:ROOT:ui/icons/vector.svg[role="icon",name="Search"] to run a similarity search.
These macros help us enforce the Google Developer Documentation Style Guide's recommendations for buttons (placing the icon inline with the text, immediately followed by the name of the button in bold):
However, in our current CSS, icons render with a different color than the icon name that's wrapped in a <b>(bold) tag. We currently style bold font in pure white and pure black. This creates a minor but noticeable discontinuity when bold text is next to an icon (more obvious in light mode). This discontinuity diminishes the icon:
Recommended solutions
We currently style all text inside a <p> tag to text.secondary, and <b> tags get text.primary. Since it would be ideal for icons to inherit the text color from their parent, we could either:
Remove text.primary from <b> and <strong> tags. (Bold font will be gray/off-white just like regular text and icons.)
Remove text.secondary from <p> tags. (All regular text, bold text, and icons will go back to being black/white like it was before, instead of the gray/off-white that was introduced in New design tokens #169.
The text was updated successfully, but these errors were encountered:
We currently use custom
icon
andsvg
macros to reference user interface buttons in the docs.AsciiDoc syntax:
Generated HTML:
Rendered output:
These macros help us enforce the Google Developer Documentation Style Guide's recommendations for buttons (placing the icon inline with the text, immediately followed by the name of the button in bold):
However, in our current CSS, icons render with a different color than the icon
name
that's wrapped in a<b>
(bold) tag. We currently style bold font in pure white and pure black. This creates a minor but noticeable discontinuity when bold text is next to an icon (more obvious in light mode). This discontinuity diminishes the icon:Recommended solutions
We currently style all text inside a
<p>
tag totext.secondary
, and<b>
tags gettext.primary
. Since it would be ideal for icons to inherit the text color from their parent, we could either:text.primary
from<b>
and<strong>
tags. (Bold font will be gray/off-white just like regular text and icons.)text.secondary
from<p>
tags. (All regular text, bold text, and icons will go back to being black/white like it was before, instead of the gray/off-white that was introduced in New design tokens #169.The text was updated successfully, but these errors were encountered: