-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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: use <button> tag for buttons #7797
fix: use <button> tag for buttons #7797
Conversation
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.
PR Summary
This pull request modifies the StyledHeaderDropdownButton
component to use a <button>
tag instead of a <div>
, improving accessibility and aligning with semantic HTML best practices.
- Changed
styled.div
tostyled.button
inpackages/twenty-front/src/modules/ui/layout/dropdown/components/StyledHeaderDropdownButton.tsx
- Added
font-family: inherit
to maintain consistent text styling - Set
border: none
to preserve the original button appearance - Maintained existing functionality and styling while enhancing accessibility
1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
packages/twenty-front/src/modules/ui/layout/dropdown/components/StyledHeaderDropdownButton.tsx
Outdated
Show resolved
Hide resolved
Welcome!
Hello there, congrats on your first PR! We're excited to have you contributing to this project. |
/assign |
This issue is not part of oss.gg hackathon. Please pick a different one or start with a side quest |
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.
Great job! We can merge.
47a74f6
to
48f2b2c
Compare
Awarding Pk9697: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/Pk9697 |
Thank you it was my first PR ! |
Good job, @Pk9697! 🎉 |
What does this PR do?
This PR updates div with button tag for buttons
Fixes #7577