Hide lone progress bar step in aboutwelcome in HCM
Categories
(Firefox :: Messaging System, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox111 | --- | fixed |
People
(Reporter: aminomancer, Assigned: rchan, NeedInfo)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Bug 1790660 changed the progress bar appearance for HCM to make the contrast ratio sufficient, but this necessitated adding a border to the steps' parent element. This means CSS is not aware of how many steps there are, except by the aria-valuemax
property.
We normally hide the progress bar when there is only one step, but the styles that accomplish that will not work in HCM anymore since they only hide the step itself, not the parent element. Hiding the parent element when it has only one step is impossible without using the ARIA attributes for styling, which I think is generally avoided when possible.
Anyway, there are 2 possibilities here:
.progress-bar[aria-valuemax="1"][aria-valuemin="1"] {
opacity: 0;
}
Or we can modify this check to hideStepsIndicator || total <= 1
to simply not render the progress bar when there is only one step.
Reporter | ||
Comment 1•2 years ago
|
||
This will also be necessary in non-HCM mode after bug 1794702, since it removes the gray background for upcoming steps and puts a gray background on the progress bar itself.
Updated•2 years ago
|
Comment 2•2 years ago
|
||
The severity field is not set for this bug.
:tspurway, could you have a look please?
For more information, please visit auto_nag documentation.
Reporter | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
Comment 5•2 years ago
|
||
Backed out for causing bc failures in browser/components/newtab/test/browser/browser_aboutwelcome_multistage_primary.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/a54d8b8345d6e7a9067000cb758d751d1ea85938
Comment 7•2 years ago
|
||
bugherder |
Description
•