react-uswds icon indicating copy to clipboard operation
react-uswds copied to clipboard

fix: Duplicate classes and invalid aria props on LanguageSelector

Open sawyerh opened this issue 2 months ago • 0 comments

Summary

This fixes a few issues with the LanguageSelector implementation:

  1. The usa-language-container class was being applied to both the parent div and the inner button, which causes layout issues due to the button receiving unexpected margins and relative positioning
  2. #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

Screenshots (optional)

CleanShot 2024-04-18 at 15 08 34@2x

sawyerh avatar Apr 18 '24 22:04 sawyerh