Repository navigation
chore: draw own marks in CSS and turn one chevron icon in ui-component and svg-sprite-icons skills - #212
Closed
dangreen wants to merge 3 commits into
Closed
chore: draw own marks in CSS and turn one chevron icon in ui-component and svg-sprite-icons skills#212dangreen wants to merge 3 commits into
dangreen wants to merge 3 commits into
Conversation
…svg-sprite-icons skills A ring, a tick or a chevron is drawn with CSS at the icons' size and weight, and a mark that shows a state is drawn from that state rather than by swapping icons, which can flash empty while the browser resolves the new picture. Pictures with detail stay SVG icons.
…-icons and ui-component skills
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A component's own simple mark is drawn in CSS, not taken from the icon set; a glyph many components show, or a picture with real detail, stays an SVG icon, and a picture that only points another way is one symbol the
Iconcomponent turns.ui-componentThe rule on simple shapes now names them, a component's own marks (a ring, a dot, a tick, a burger that turns into a cross), and how they are drawn: borders,
clip-pathor a pseudo-element incurrentColor, at the icons' size and line weight. A glyph many components show, such as a chevron, stays an icon. Two sub-rules come with it::checked,[aria-pressed='true'],[aria-expanded='true']), never by swapping one icon for another. A swapped sprite icon can flash empty while the browser resolves the new picture.svg-sprite-iconsOne paragraph after the intro: an icon is a glyph many components show or a picture with detail; a component's own simple mark is drawn in CSS, a state is never shown by swapping icons, and a picture that only points another way is one symbol the
Iconcomponent turns in CSS, as the chevron.🤖 Generated with Claude Code