Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add css hooks to buttons, wrap button text in a span #5343

Merged
merged 2 commits into from
Aug 16, 2024
Merged

Conversation

pxpm
Copy link
Contributor

@pxpm pxpm commented Oct 11, 2023

reported in #5010

we could make developers life easier when they want to hide the button text and display only an icon by wrapping the button text in a span as suggested by @tabacitu

I've decided to create a class for each button type, eg: create-button-text-span, update-button-text-span. That way developers have the ability to hide only specific button texts, or hide all of them with *-button-text-span selector.

@pxpm pxpm force-pushed the add-span-to-buttons branch from b5e4e40 to 27bfb1a Compare August 14, 2024 08:35
@pxpm pxpm changed the title [WIP] add span to backpack button text add css hooks to buttons, wrap button text in a span Aug 14, 2024
@pxpm pxpm self-assigned this Aug 14, 2024
@pxpm pxpm merged commit cf5cb9d into main Aug 16, 2024
8 checks passed
@pxpm pxpm deleted the add-span-to-buttons branch August 16, 2024 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants