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

fix: use <button> tag for buttons #7797

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

Pk9697
Copy link
Contributor

@Pk9697 Pk9697 commented Oct 17, 2024

What does this PR do?

This PR updates div with button tag for buttons

Fixes #7577

Screenshot 2024-10-17 210955

Copy link
Contributor

@greptile-apps greptile-apps bot left a 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 to styled.button in packages/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

Copy link

github-actions bot commented Oct 17, 2024

Welcome!

Hello there, congrats on your first PR! We're excited to have you contributing to this project.
By submitting your Pull Request, you acknowledge that you agree with the terms of our Contributor License Agreement.

Generated by 🚫 dangerJS against 47a74f6

@Pk9697
Copy link
Contributor Author

Pk9697 commented Oct 18, 2024

/assign

Copy link

oss-gg bot commented Oct 18, 2024

This issue is not part of oss.gg hackathon. Please pick a different one or start with a side quest

Copy link
Contributor

@Devessier Devessier left a 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.

@Devessier Devessier force-pushed the fix/use-button-tag-for-buttons branch from 47a74f6 to 48f2b2c Compare October 21, 2024 12:15
@Devessier Devessier enabled auto-merge (squash) October 21, 2024 12:16
@Devessier Devessier merged commit 28c99cb into twentyhq:main Oct 21, 2024
18 checks passed
Copy link

oss-gg bot commented Oct 21, 2024

Awarding Pk9697: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/Pk9697

@Pk9697
Copy link
Contributor Author

Pk9697 commented Oct 21, 2024

Thank you it was my first PR !

@Devessier
Copy link
Contributor

Good job, @Pk9697! 🎉

@Pk9697 Pk9697 deleted the fix/use-button-tag-for-buttons branch October 21, 2024 14:15
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.

Use the <button> tag for buttons
3 participants