-
Notifications
You must be signed in to change notification settings - Fork 608
Fix fragment scroll margin #8702
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
base: master
Are you sure you want to change the base?
Changes from all commits
26422a6
498811a
b873914
6bb3c29
697ad32
85b4de6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,18 +1,18 @@ | ||||||||||||||
| <div data-swiftype-index=false class="notification-bar sticky-top"> | ||||||||||||||
| <div class="notification-bar__content"> | ||||||||||||||
| <a class="notification-bar__close" data-ol-has-click-handler=""> | ||||||||||||||
| <span aria-hidden="true">×</span> | ||||||||||||||
| </a> | ||||||||||||||
| <div class="notification-bar__wrapper"> | ||||||||||||||
| <a href="https://mattermost.com/blog/mattermost-v11-powering-more-mission-critical-collaboration/" target="_blank" class="notification-bar__link"><img src="{{ pathto('_static/images/notification-bar/icon-megaphone.svg', 1) }}" alt="">Mattermost v11.0 is now available! Learn what's new »</a> | ||||||||||||||
| </div> | ||||||||||||||
| </div> | ||||||||||||||
| </div> | ||||||||||||||
| {%- if pagename == 'index' %} | ||||||||||||||
| <header class="site-header" itemscope="" itemtype="https://schema.org/WebSite"> | ||||||||||||||
| {%- else %} | ||||||||||||||
| <header class="site-header site-header--not-home" itemscope="" itemtype="https://schema.org/WebSite"> | ||||||||||||||
| {% endif %} | ||||||||||||||
| <div data-swiftype-index=false class="notification-bar"> | ||||||||||||||
| <div class="notification-bar__content"> | ||||||||||||||
| <a class="notification-bar__close" data-ol-has-click-handler=""> | ||||||||||||||
| <span aria-hidden="true">×</span> | ||||||||||||||
| </a> | ||||||||||||||
|
Comment on lines
+8
to
+10
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
rg -n -C2 'notification-bar__close|notification-bar-hide|querySelector\\(|addEventListener\\('Repository: mattermost/docs Length of output: 274 🏁 Script executed: #!/bin/bash
set -euo pipefail
# Search for notification-bar related JS handlers with corrected regex
rg -n 'notification-bar__close|notification-bar-hide' -A 3 -B 3Repository: mattermost/docs Length of output: 1899 🏁 Script executed: #!/bin/bash
# Check the full context of the custom-nav.html file around lines 6-15
fd 'custom-nav.html' --exec cat -n {} \;Repository: mattermost/docs Length of output: 36298 🏁 Script executed: #!/bin/bash
# Search for event listeners and querySelector patterns that might target notification-bar
rg -n 'querySelector|addEventListener|data-ol-has-click-handler' --type htmlRepository: mattermost/docs Length of output: 1704 Use a semantic close button with a keyboard-accessible control and announced purpose. Line 8 currently uses an Suggested fix- <a class="notification-bar__close" data-ol-has-click-handler="">
+ <button type="button" class="notification-bar__close" aria-label="Close notification banner" data-ol-has-click-handler="">
<span aria-hidden="true">×</span>
- </a>
+ </button>The click handler in 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||
| <div class="notification-bar__wrapper"> | ||||||||||||||
| <a href="https://mattermost.com/blog/mattermost-v11-powering-more-mission-critical-collaboration/" target="_blank" class="notification-bar__link"><img src="{{ pathto('_static/images/notification-bar/icon-megaphone.svg', 1) }}" alt="">Mattermost v11.0 is now available! Learn what's new »</a> | ||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add Line 12 opens a new tab without Suggested fix- <a href="https://mattermost.com/blog/mattermost-v11-powering-more-mission-critical-collaboration/" target="_blank" class="notification-bar__link"><img src="{{ pathto('_static/images/notification-bar/icon-megaphone.svg', 1) }}" alt="">Mattermost v11.0 is now available! Learn what's new »</a>
+ <a href="https://mattermost.com/blog/mattermost-v11-powering-more-mission-critical-collaboration/" target="_blank" rel="noopener noreferrer" class="notification-bar__link"><img src="{{ pathto('_static/images/notification-bar/icon-megaphone.svg', 1) }}" alt="">Mattermost v11.0 is now available! Learn what's new »</a>📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||
| </div> | ||||||||||||||
| </div> | ||||||||||||||
| </div> | ||||||||||||||
| <div class="nav-container site-header__container"> | ||||||||||||||
| <div class="site-header__row"> | ||||||||||||||
| <div class="site-header__col--logo"> | ||||||||||||||
|
|
||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix Stylelint
font-family-name-quotesat Line 174.This declaration currently violates the configured lint rule and should be normalized to pass CI.
Suggested fix
🧰 Tools
🪛 Stylelint (17.9.0)
[error] 174-174: Expected no quotes around "trade-gothic-next" (font-family-name-quotes)
(font-family-name-quotes)
[error] 174-174: Expected no quotes around "Lato" (font-family-name-quotes)
(font-family-name-quotes)
[error] 174-174: Expected no quotes around "Arial" (font-family-name-quotes)
(font-family-name-quotes)
🤖 Prompt for AI Agents