Skip to content

New: Add span wrapper around view button text (fixes #211)#216

Merged
oliverfoster merged 2 commits intomasterfrom
issue/211
May 13, 2025
Merged

New: Add span wrapper around view button text (fixes #211)#216
oliverfoster merged 2 commits intomasterfrom
issue/211

Conversation

@swashbuck
Copy link
Copy Markdown
Contributor

@swashbuck swashbuck commented May 1, 2025

Fix #211

New

  • Add a span wrapper around the view button text. This will make it easier to hide the text if we want an icon-only button.

Notes

In #217 , I have suggested the option to add an icon to the button via config.

Copy link
Copy Markdown
Contributor

@kirsty-hames kirsty-hames left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @swashbuck. I've previously used font-size: 0 to visually hide linkText whilst keeping it accessible for SRs however wrapping the text using a <span> is much cleaner and consistent with other Adapt buttons containing text and/or icons.

This works as expected thanks and I'm also in favour of #217 :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

@oliverfoster oliverfoster merged commit 1081a4a into master May 13, 2025
@oliverfoster oliverfoster deleted the issue/211 branch May 13, 2025 08:11
@github-project-automation github-project-automation Bot moved this from Needs Reviewing to Recently Released in adapt_framework: The TODO Board May 13, 2025
github-actions Bot pushed a commit that referenced this pull request May 13, 2025
# [7.3.0](v7.2.0...v7.3.0) (2025-05-13)

### New

* Add span wrapper around view button text (fixes #211) (#216) ([1081a4a](1081a4a)), closes [#211](#211) [#216](#216)
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 7.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hiding box menu item button text

4 participants