9 Commits
Author SHA1 Message Date
calixteman ca39f5a85f Fix the RTL layout of the views manager header (bug 2060033)
The chevron and the header padding used physical properties, so they didn't
mirror in RTL: the chevron ended up flush against the pages icon and the
selector and trailing buttons had their insets swapped.

The menu check mark is a "V" shaped glyph, hence it must be mirrored too, as
it's already done for the check mark of the signature properties.
2026-08-16 19:18:30 +02:00
Calixte Denizet fd8ed8422f Nova-ify the viewer (bug 2063405) 2026-08-14 17:20:05 +02:00
Calixte Denizet b4d028132b Sync the viewer chrome with the Firefox design system
The chrome is now authored against Firefox design-token names with the shipped
value as a fallback `var(--fx-token, <literal>)` so colors, borders and radii
follow Firefox instead of having to be re-synced by hand.

In MOZCENTRAL viewer.css imports chrome://global/skin/design-system/tokens-brand.css,
gated on the new pdfjs.enableNova pref (default false, read straight from CSS via -moz-pref()).
With the pref off the sheet isn't applied, every fallback resolves, and the
viewer renders as before, as it also does in the GENERIC and components builds,
which never see the chrome sheet.

Consuming a token means never declaring its name in an unlayered rule, which
would shadow Firefox's for the whole subtree; --focus-outline, --border-color and
--text-color/--button-border-color are therefore renamed to
--editor-selection-outline, --signature-border-color and --views-*. In forced
colors each state reads a matching background/foreground/border triple so it
can't collapse to a single system color.

The dialog button styling also moves out of `.dialog .mainContainer button` into
a shared .primaryButton/.secondaryButton primitive (buttons.css, imported from
pdf_viewer.css so the components build gets it too). The password,
document-properties, print and undo-bar buttons use it in place of .dialogButton,
and the custom radio appearance gives way to native controls tinted with
accent-color.
2026-07-30 23:13:43 +02:00
Calixte Denizet 1db3774540 Make sure the menuitems are readable when hovering them (bug 2023138)
Simplify a bit the html for the menu: remove the li elements.
Make sure the the menuitems are exposed when disabled.
2026-03-20 10:01:45 +01:00
Calixte Denizet f9c50bb7ce Fix few colors in the Manage menu in HCM (bug 2020774) 2026-03-04 16:47:48 +01:00
Calixte Denizet a4f4d460ca Hide the menu container in changing it's visibility
This way, the dimensions of the menu container don't depend on its visibility.
This patch fixes few keyboard issues I noticed when reading:
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/menu_role#keyboard_interactions
2026-01-20 14:42:57 +01:00
Calixte Denizet 9de04ef3de Fix the position of the checkmark when the menu is displayed in RTL 2025-12-12 17:33:20 +01:00
Calixte Denizet 4bf759404c Add a new linting task in order to detect unused/unknown css variables in the Firefox build
The goal is to be able to catch the errors before making a release.
And fix some css issues (especially the missing css code for the newly added menu.css)
2025-12-08 09:44:33 +01:00
Calixte Denizet 4c6cc0a042 Add a menu class in order to be used in the new UI for the merge feature 2025-12-04 22:12:10 +01:00