stable

Clone or download

Read-only

refactor: Be able to import only Sass color variables

part of request #40099 Cross-Tracker search finishing touches 16.1 No functional change expected. npm run build should succeed. In Baseline, Document, Project Milestones, burndown chart and TQL syntax highlight, TLP "business" colors used "standalone" should still display. Why? When using tlp-swatch-colors, you also silently pull the 24 classes ".tlp-swatch-<color-name>", even though you might not use them or their associated CSS custom properties. Exposing another export path allows consumer apps and libs to only pull the Sass variables, which only appear in CSS if they are used in a rule. This could reduce the size of the bundled CSS files and avoid hidden dependencies. Change-Id: I5bdd69d178c62091aba1c3a237835c0e488c233e

Modified Files

Name
M lib/frontend/tlp-swatch-colors/package.json +2 −1 Go to diff View file
M lib/frontend/tlp-swatch-colors/themes/_button-colors.scss +5 −4 Go to diff View file
M lib/frontend/tlp-swatch-colors/themes/_color-classes.scss +2 −2 Go to diff View file
A lib/frontend/tlp-swatch-colors/themes/_color-map.scss +249 −0 Go to diff View file
M lib/frontend/tlp-swatch-colors/themes/main.scss +2 −2 Go to diff View file
R lib/frontend/tlp-swatch-colors/themes/_swatch-colors.scss Go to diff View file
M plugins/baseline/themes/baseline/_baseline-content.scss +1 −1 Go to diff View file
M plugins/baseline/themes/baseline/_comparison-content.scss +1 −1 Go to diff View file
M plugins/document/themes/_icons.scss +21 −20 Go to diff View file
M plugins/document/themes/quicklook/_quicklook-folder.scss +1 −1 Go to diff View file
M plugins/projectmilestones/scripts/projectmilestones/themes/_headers.scss +1 −1 Go to diff View file
M plugins/tracker/scripts/burndown-chart/themes/burndown-chart.scss +1 −1 Go to diff View file
M plugins/tracker/scripts/lib/TQL-CodeMirror/src/style.scss +1 −1 Go to diff View file
M src/themes/common/css/_prism-theme-tuleap.scss +1 −1 Go to diff View file