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

alert description tag depends on its content #148

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

enguerranws
Copy link
Collaborator

No description provided.

@enguerranws enguerranws force-pushed the feature/alert-div-description branch from f46dda8 to 4367a8b Compare July 24, 2023 10:21
@@ -108,6 +108,7 @@ export const Alert = memo(

const refShouldButtonGetFocus = useRef(false);
const refShouldSetRole = useRef(false);
const DescriptionTag = typeof description === "string" ? "p" : "div";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@garronej garronej merged commit 138aa4e into main Jul 24, 2023
6 checks passed
@garronej garronej deleted the feature/alert-div-description branch July 24, 2023 20:46
sbourdon13 pushed a commit to sbourdon13/react-dsfr that referenced this pull request Aug 11, 2023
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