-
Notifications
You must be signed in to change notification settings - Fork 24
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
fix(ktabs): allow tab anchors to be links [KHCP-13866] #2532
Conversation
✅ Deploy Preview for kongponents-sandbox ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for kongponents ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
docs/components/tabs.md
Outdated
## Usage | ||
|
||
### Tab links |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand the new "Usage" section here -- can we just document "Tabs as Links" under the Props instead (above the Slots section)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Made it a subheading under tabs
prop since it mostly relates to that prop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## [9.14.18](v9.14.17...v9.14.18) (2024-12-03) ### Bug Fixes * **ktabs:** allow tab anchors to be links [KHCP-13866] ([#2532](#2532)) ([cdf5caa](cdf5caa))
🎉 This PR is included in version 9.14.18 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Several people have reported issue with being able to click on our tab component i.e. you have to click exactly on the text instead of being able to click on the entire button. A recent kongponent update (Kong/kongponents#2532) changed the padding of certain HTML elements, which removed the padding from our anchor links and added it to the surrounding div instead, meaning whilst it looked like you could click on the entire button to click the anchor, you where actually clicking the div, meaning the anchor wasn't navigating. Also see https://github.com/Kong/kongponents/pull/2532/files#diff-01f83cc2092a263bfd47c1d0a4ba5e96dea98264d85282662a63f4fa18c44dedR177 This PR rearranges the padding using some overwrites to return the anchor its previous padded state. There is still a little unclickable area between the button and the bottom border, but I think this is intentional form the kongponents authors. The additional difference with this area is that at least you don't see a pointer cursor when hovering over it. Signed-off-by: John Cowen <john.cowen@konghq.com>
Summary
Addresses: https://konghq.atlassian.net/browse/KHCP-13866
Add
to
property inTab
interface to support rendering tabs as links