Disentangle styles for review request tabs and improve tab layout.
Review Request #12749 — Created Dec. 1, 2022 and submitted
The review request tabs element was also adding the
review-request-actions
class, picking up a whole bunch of style rules. Most of these rules were
not necessary, either being specific to actions, or overridden by the
tabs.This change splits those up, and also redoes the tab layout using our
new CSS component style. With this, the layout and CSS use our modern
standards, and use the more-semantic<menu>
element. I've also added
ARIA attributes where appropriate to ensure that these elements include
the proper roles and attributes.
- Looked at and interacted with reviews, diff, and file attachment tabs in
Firefox, Chrome, and Safari. Verified that functionality and
appearance are correct. - Used a11y debug tools to validate the layout and roles of the tabs.
Summary | ID |
---|---|
bc749e3bc053c9f6b4f86d55b1a2b8274d823522 |
- Summary:
-
Disentangle styles for review request tabs and actions.Disentangle styles for review request tabs and improve tab layout.
- Description:
-
The review request tabs element was also adding the
review-request-actions
~ class, picking up a whole bunch of style rules. It turns out that only a ~ couple of these rules were not already included in the tabs CSS, so I've ~ copied them there and removed the actions class. ~ class, picking up a whole bunch of style rules. Most of these rules were ~ not necessary, either being specific to actions, or overridden by the ~ tabs. + + This change splits those up, and also redoes the tab layout using our
+ new CSS component style. With this, the layout and CSS use our modern + standards, and use the more-semantic <menu>
element. I've also added+ ARIA attributes where appropriate to ensure that these elements include + the proper roles and attributes. - Testing Done:
-
~ Looked at and interacted with tabs in Firefox, Chrome, and Safari.
~ - Looked at and interacted with reviews, diff, and file attachment tabs in
Firefox, Chrome, and Safari. Verified that functionality and
appearance are correct.
+ - Used a11y debug tools to validate the layout and roles of the tabs.
- Looked at and interacted with reviews, diff, and file attachment tabs in
- Commits:
-
Summary ID af918ca3337d45321c415f1ecebf45a3ec61c8e1 6aa5c9e25b8dfc1020dbd65d63b9ce046cd0a942
Checks run (2 succeeded)
- Change Summary:
-
Fix documentation and ordering.
- Commits:
-
Summary ID 6aa5c9e25b8dfc1020dbd65d63b9ce046cd0a942 9de66cb75477f8e4345421f0106d3ff87fa8959e