Closed Bug 1796238 Opened 2 years ago Closed 2 years ago

Hide lone progress bar step in aboutwelcome in HCM

Categories

(Firefox :: Messaging System, defect, P2)

Desktop
Unspecified
defect

Tracking

()

RESOLVED FIXED
111 Branch
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.

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.

See Also: → 1794702
Priority: -- → P2

The severity field is not set for this bug.
:tspurway, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(tspurway)
Severity: -- → S4
Flags: needinfo?(tspurway)
Assignee: nobody → rchan
Pushed by rchan@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/611d8c6d5ce8 Hide lone progress bar step in aboutwelcome in HCM r=omc-reviewers,aminomancer
Pushed by rchan@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/105be1098e10 Hide lone progress bar step in aboutwelcome in HCM r=omc-reviewers,aminomancer
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
Regressions: 1818437
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: