Skip to content

Add label visibility and icon color options - #1

Merged
jdbg merged 2 commits into
mainfrom
feature/label-visibility
Sep 15, 2026
Merged

jdbg merged 2 commits into
mainfrom
feature/label-visibility

Conversation

@jdbg

@jdbg jdbg commented Sep 13, 2026 •

Copy link
Copy Markdown
Collaborator

Replaces the hide-label-on-mobile toggle with a three-way label control: visible (default), hidden below the mobile breakpoint, or always hidden. The always-hidden state is a plain compiled CSS rule, since unlike the mobile state it carries no breakpoint to filter.

hmHideLabelOnMobile stays registered and is still read on the front end for backwards compatibility. A button saved before this change carries only that flag, and true with no hmLabelVisibility in the comment still resolves to the mobile state, so nothing already published changes appearance.

Also adds a Color control, scoped to a registered icon (an uploaded SVG keeps whatever colour it was drawn with). Defaults to the button's own text colour, unchanged; a chosen colour overrides that via an inline style on the icon's svg root.

Version bump and tag come after this merges.

Replaces the hide-label-on-mobile toggle with a three-way label
visibility control: visible, hidden below the mobile breakpoint, or
always hidden. The always-hidden state is a plain compiled CSS rule
since it carries no breakpoint to filter.

hmHideLabelOnMobile is kept and still read on the front end for
backwards compatibility: a button saved before this change carries
only that flag, and true with no hmLabelVisibility in the comment
still resolves to the mobile state.
An uploaded SVG keeps whatever colour it was drawn with, so this is
scoped to a registered icon: it defaults to the button's own text
colour, unchanged, and a chosen colour overrides that via an inline
style on the icon's <svg> root.
@jdbg jdbg changed the title Add label visibility option Add label visibility and icon color options Sep 15, 2026
@jdbg
jdbg merged commit 628d499 into main Sep 15, 2026
1 check passed
@jdbg
jdbg deleted the feature/label-visibility branch September 15, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant