Skip to content

Conversation

@Kritank07
Copy link
Contributor

Problem
The notification alerting users about the documentation version cannot be dismissed in certain browsers, specifically Firefox. This is caused by using a non-semantic

with role="button" for the dismissal logic. This implementation also creates accessibility barriers, as it does not follow standard HTML practices for interactive elements.

Solution
Updated the dismissal element in the NotificationBar component from a

to a semantic .

Maintained existing CSS classes and the onClick handler to ensure visual and functional consistency.

Ensured the CloseIcon remains correctly nested within the new button element for proper click targeting.

@vercel
Copy link

vercel bot commented Jan 16, 2026

@Kritank07 is attempting to deploy a commit to the OpenJS Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Jan 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
webpack-js-org Ready Ready Preview, Comment Jan 18, 2026 4:19am

Request Review

@evenstensberg
Copy link
Member

This doesnt look right.

Expected

Screenshot 2026-01-18 at 03 45 07

Recieved

Screenshot 2026-01-18 at 03 44 31

@Kritank07
Copy link
Contributor Author

I have updated the dismiss element to a semantic to fix the Firefox issue. I also added a CSS reset (background: none, border: none) to ensure the visual appearance matches the original design exactly. Please check the latest commit."

@evenstensberg
Copy link
Member

I've already approved it 😄

@Kritank07
Copy link
Contributor Author

Thank you for the approval! I've confirmed that all checks have passed and the unrelated changes have been separated into their own branch. Is there anything else needed before this can be merged?

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