Closed Bug 1517856 Opened 6 years ago Closed 3 months ago

Use a variable for defining the content width for preferences

Categories

(Firefox :: Settings UI, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: mstriemer, Assigned: mkennedy)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [recomp])

Attachments

(1 file)

The preferences pane has a width of 664px, this is now being matched in about:addons. This magic number is starting to spread (mostly in about:addons for reasons) so it would be nice to have a variable defined to tracks its use along with derivative values with padding subtracted. Will file a follow up for about:addons. https://searchfox.org/mozilla-central/rev/ecf61f8f3904549f5d65a8a511dbd7ea4fd1a51d/browser/themes/shared/incontentprefs/preferences.inc.css#19
Blocks: 1517857
Priority: -- → P3
Severity: normal → S3

It looks like there are now four different places where we are either defining a unique variable or hardcoding this value. Jules and I were thinking --page-main-content-width could be a good token name to handle all of these use cases/cover all of our about: pages.

Assignee: nobody → mkennedy
Whiteboard: [recomp]
  • Add new token that builds CSS var

  • Replace instances with new CSS var

Depends on: 1931919
Pushed by hjones@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2b6fc3265f48 Use shared CSS var for defining common page-level content widths r=reusable-components-reviewers,extension-reviewers,settings-reviewers,desktop-theme-reviewers,mconley,hjones,robwu
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: