react-uswds
react-uswds copied to clipboard
fix: Duplicate classes and invalid aria props on LanguageSelector
Summary
This fixes a few issues with the LanguageSelector
implementation:
- The
usa-language-container
class was being applied to both the parentdiv
and the innerbutton
, which causes layout issues due to the button receiving unexpected margins and relative positioning - #2809
An assumption I am making in this PR is that the intent of the className
prop is to apply custom styling to the button, which is how it's demonstrated in Storybook.
How To Test
Storybook