-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Prioritized updates #19655
Merged
Merged
Prioritized updates #19655
Changes from 9 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
8eddefe
Include user agent when fetching changelog
niik 5d2a15c
Include user agent when posting stats
niik 923eff2
Expose priority update status
niik ae93744
Add nondismissable mode for update banner
niik f92fd9f
Add testing menu item for showing priority update banner
niik 977981f
Allow for info url
niik de6455e
Some basic styling
niik b29e6d5
Don't add a "read more" link
niik fda8fc0
Use alert icon to convey urgency
niik 4a92672
a11y contrast requirements
niik afd1754
Color contrast take one thousand
niik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -376,6 +376,11 @@ body.theme-dark { | |
--dialog-information-color: #{$blue-400}; | ||
--dialog-error-color: #{$red-600}; | ||
|
||
/** Banner */ | ||
--banner-warning-background: #{darken($orange-900, 20%)}; | ||
--banner-warning-text-color: var(--text-color); | ||
--banner-warning-link-color: #4285fb; | ||
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. Good contrast for dark mode. :) 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. thank you yes couldnt agree more |
||
|
||
/** File warning */ | ||
--file-warning-background-color: #{rgba($yellow-900, 0.4)}; | ||
--file-warning-color: #{$yellow-700}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
#update-available { | ||
.download-icon { | ||
.download-icon, | ||
.warning-icon { | ||
margin-right: var(--spacing); | ||
} | ||
|
||
.banner-emoji { | ||
display: inline-block; | ||
margin-right: var(--spacing-half); | ||
} | ||
|
||
&.priority { | ||
background-color: var(--banner-warning-background); | ||
color: var(--banner-warning-text-color); | ||
|
||
a { | ||
color: var(--banner-warning-link-color); | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
For accessibility, we need:
link -> text = 3:1
link/text -> background: 4.5:1
Unfortunately, this is giving link:text of 1.5:1 for light mode.
Here is a link checker tool that has inputs for the link, the text, and the background to make verification easier.
https://webaim.org/resources/linkcontrastchecker/
Feel free to fix as you see fit. When I was testing locally, I tried the hidden bidi characters styles (which have been modified recently for accessibility.) These colors were inspired by warning colors of https://primer.style/components/banner. ... which one could argue that maybe we could use there "Critical" banner styles which would be a redish color kind of like dark mode. https://primer.style/foundations/primitives/color has a
--bgColor-danger-muted
(for background) and--bgColor-danger-emphasis
(for icon) -- but would need to be verified for accessibility. (Notes, the icon needs to have 3:1 to background)