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

Fixed dropdown menu field settings #8374

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

lucasbordeau
Copy link
Contributor

2 dropdown menu components were used. Using only one and using dropdown props for passing width to its internal dropdown menu component.

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

Simplified dropdown menu implementation in settings field actions by consolidating components and standardizing width handling.

  • Removed redundant DropdownMenu component in SettingsObjectFieldActiveActionDropdown.tsx in favor of using Dropdown's built-in dropdownMenuWidth prop
  • Changed width value from string '160px' to numeric 160 for consistency
  • Added aria-label "Active Field Options" to improve accessibility

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@charlesBochet charlesBochet merged commit 045f569 into main Nov 8, 2024
18 of 19 checks passed
@charlesBochet charlesBochet deleted the fix/dropdown-menu-field-settings branch November 8, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants