Skip to content

docs: remove non-dismissible documentation notification bar#7746

Merged
alexander-akait merged 2 commits intowebpack:mainfrom
pranjalisr:main
Jan 19, 2026
Merged

docs: remove non-dismissible documentation notification bar#7746
alexander-akait merged 2 commits intowebpack:mainfrom
pranjalisr:main

Conversation

@pranjalisr
Copy link
Copy Markdown
Contributor

Summary

This PR removes the global documentation notification bar that informs users they are viewing a different documentation version. Fixes issue #7737

The notification cannot be dismissed in Firefox, blocks essential parts of the page, and relies on non-semantic interaction patterns (div role="button"). While a close button is rendered in Chrome, it does not appear in Firefox, causing the banner to reappear on every page load and negatively impact usability and accessibility.

Given that the notification is rendered globally and provides no actionable value, the component has been turned into a no-op to fully remove the problematic UI without touching layout wiring or introducing browser-specific logic.

What kind of change does this PR introduce?

Fix / Docs

Did you add tests for your changes?

No.
This change removes a purely presentational UI component from the documentation site. There is no business logic or functional behavior to test, and the repository does not currently include tests covering documentation UI banners.

Does this PR introduce a breaking change?

No.
The change only affects the documentation UI and does not impact Webpack functionality, APIs, or consumer applications.

If relevant, what needs to be documented once your changes are merged or what have you already documented?

No additional documentation is required. The notification has been removed entirely rather than replaced or modified.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 15, 2026

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

A member of the Team first needs to authorize it.

Comment thread src/content/guides/web-workers.mdx Outdated
__webpack_public_path__ = self.location.origin + '/assets/';

// Then import or execute the rest of your worker logic
importScripts('deep-thought.js');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Avoid these changes

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the review!
These lines were carried over from my earlier PR. I’ve removed them from this one. Please let me know if further adjustments are needed.

</>
);
return null;
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why we need this component at all?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agreed — it’s no longer needed. I’ve removed the NotificationBar completely along with all related files and references. The notifier is no longer part of the codebase at all. Please take another look and let me know if any other change is required.

Comment thread src/components/Site/Site.jsx
@alexander-akait alexander-akait merged commit 15a1f47 into webpack:main Jan 19, 2026
6 of 7 checks passed
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