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] Accordion does not apply className to the Button under the Heading in AccordonItem #3019

Open
KeithWaddell-REISys opened this issue Aug 28, 2024 · 0 comments
Labels
type: bug Something isn't working like it's supposed to

Comments

@KeithWaddell-REISys
Copy link

ReactUSWDS Version & USWDS Version:

USWDS 3.7.1
ReactUSWDS 9.0.0

Describe the bug

The AccordionItem componenent renders a Button underneath a Header. The Header applies the 'className' property, but the Button underneath does not. This results in being unable to style the Button, which is undesirable, as in my case I want to be able to style the Button so that it looks similar to the child content, for example matching the background color and text.

To Reproduce
Steps to reproduce the behavior:

Use the Accordion Component, style it with the 'className' property, observe the styling on the Button that is rendered

Expected behavior

The styles applied by the classes should also apply to the Button

Screenshots

Additional context

Device and Browser Information (please complete the following information if describing a UI bug):

@KeithWaddell-REISys KeithWaddell-REISys added the type: bug Something isn't working like it's supposed to label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working like it's supposed to
Projects
None yet
Development

No branches or pull requests

1 participant