Disentangle styles for review request tabs and improve tab layout.
Review Request #12749 — Created Dec. 1, 2022 and submitted
Information | |
---|---|
david | |
Review Board | |
release-6.x | |
Reviewers | |
reviewboard | |
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: |
|
|||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
|||||||||||||||||||||||||||||||||||||||
Testing Done: |
|
|||||||||||||||||||||||||||||||||||||||
Commits: |
|
|||||||||||||||||||||||||||||||||||||||
Diff: |
Revision 2 (+134 -32) |
Checks run (2 succeeded)
-
-
reviewboard/static/rb/css/pages/review-request.less (Diff revision 2) Can you also add documentation for each named part of the component?
-
reviewboard/static/rb/css/pages/review-request.less (Diff revision 2) The
&
rules should go above rules for tags (a
).
Change Summary:
Fix documentation and ordering.
Commits: |
|
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 3 (+144 -32) |
Checks run (2 succeeded)
-
-
reviewboard/static/rb/css/pages/review-request.less (Diff revisions 2 - 3) Indentation got a bit wonky here.
Commits: |
|
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 4 (+144 -32) |
Checks run (2 succeeded)
-
One tiny thing.
-
reviewboard/static/rb/css/pages/review-request.less (Diff revision 4) These should be in alphabetical order.