feat: add icon-top and icon-bottom label positions#2721
Open
jeffmoss wants to merge 1 commit intoterrastruct:masterfrom
Open
feat: add icon-top and icon-bottom label positions#2721jeffmoss wants to merge 1 commit intoterrastruct:masterfrom
jeffmoss wants to merge 1 commit intoterrastruct:masterfrom
Conversation
Add two new label.near values that position the label relative to the icon rather than the container box: - icon-top: label to the right of the icon, top-aligned - icon-bottom: label to the right of the icon, bottom-aligned If the icon is on a right-side position, the label goes to the left instead. Text alignment follows the icon side (left-aligned for left icons, right-aligned for right icons). This enables side-by-side [icon] Label headers on containers without the icon and label competing for the same outside-top position. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Add two new label.near values that position the label relative to the icon rather than the container box:
If the icon is on a right-side position, the label goes to the left instead. Text alignment follows the icon side (left-aligned for left icons, right-aligned for right icons).
This enables side-by-side [icon] Label headers on containers without the icon and label competing for the same outside-top position.
Left aligned snippet:
Right aligned snippet:
Left aligned:

Right aligned:

Left-bottom aligned:
