Skip to content

Commit e5133d7

Browse files
authored
refactor(tokens): remove some unused custom variables (#2618)
* refactor(tokens): remove unused custom vars for edge-to-visual-only These custom vars are no longer referenced anywhere in the repo: --spectrum-edge-to-visual-only-75 --spectrum-edge-to-visual-only-100 --spectrum-edge-to-visual-only-200 --spectrum-edge-to-visual-only-300 The icon only button referenced in the removed comment currently uses other existing tokens (e.g. component-pill-edge-to-visual-only). * refactor(tokens): remove unused chevron size custom variable This custom variable is no longer referenced anywhere in the repo: --spectrum-icon-chevron-size-50 This has already been replaced by an existing token: --spectrum-chevron-icon-size-50
1 parent e5391b6 commit e5133d7

File tree

5 files changed

+0
-42
lines changed

5 files changed

+0
-42
lines changed

tokens/custom-spectrum/custom-large-vars.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ governing permissions and limitations under the License.
1313
/* This file contains overrides and additions to core tokens */
1414

1515
.spectrum--large {
16-
/* edge-to-visual-only is used for icon-only buttons */
17-
--spectrum-edge-to-visual-only-75: 5px;
18-
--spectrum-edge-to-visual-only-100: 9px;
19-
--spectrum-edge-to-visual-only-200: 13px;
20-
--spectrum-edge-to-visual-only-300: 16px;
21-
2216
--spectrum-slider-tick-mark-height: 13px;
2317
--spectrum-slider-ramp-track-height: 20px;
2418

@@ -76,7 +70,6 @@ governing permissions and limitations under the License.
7670
--spectrum-well-min-width: 300px;
7771
--spectrum-well-border-radius: 5px;
7872

79-
--spectrum-icon-chevron-size-50: 8px;
8073
/* XXL and XXS icon sizes are not within the design spec and are planned to be deprecated in Spectrum 2. */
8174
--spectrum-workflow-icon-size-xxl: 40px;
8275
--spectrum-workflow-icon-size-xxs: 15px;

tokens/custom-spectrum/custom-medium-vars.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ governing permissions and limitations under the License.
1313
/* This file contains overrides and additions to core tokens */
1414

1515
.spectrum--medium {
16-
/* edge-to-visual-only is used for icon-only buttons */
17-
--spectrum-edge-to-visual-only-75: 4px;
18-
--spectrum-edge-to-visual-only-100: 7px;
19-
--spectrum-edge-to-visual-only-200: 10px;
20-
--spectrum-edge-to-visual-only-300: 13px;
21-
2216
--spectrum-slider-tick-mark-height: 10px;
2317
--spectrum-slider-ramp-track-height: 16px;
2418

@@ -75,7 +69,6 @@ governing permissions and limitations under the License.
7569
--spectrum-well-min-width: 240px;
7670
--spectrum-well-border-radius: var(--spectrum-spacing-75);
7771

78-
--spectrum-icon-chevron-size-50: 6px;
7972
/* XXL and XXS icon sizes are not within the design spec and are planned to be deprecated in Spectrum 2. */
8073
--spectrum-workflow-icon-size-xxl: 32px;
8174
--spectrum-workflow-icon-size-xxs: 12px;

tokens/dist/css/spectrum/custom-large-vars.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
.spectrum--large{
2-
/* edge-to-visual-only is used for icon-only buttons */
3-
--spectrum-edge-to-visual-only-75:5px;
4-
--spectrum-edge-to-visual-only-100:9px;
5-
--spectrum-edge-to-visual-only-200:13px;
6-
--spectrum-edge-to-visual-only-300:16px;
7-
82
--spectrum-slider-tick-mark-height:13px;
93
--spectrum-slider-ramp-track-height:20px;
104

@@ -62,7 +56,6 @@
6256
--spectrum-well-min-width:300px;
6357
--spectrum-well-border-radius:5px;
6458

65-
--spectrum-icon-chevron-size-50:8px;
6659
/* XXL and XXS icon sizes are not within the design spec and are planned to be deprecated in Spectrum 2. */
6760
--spectrum-workflow-icon-size-xxl:40px;
6861
--spectrum-workflow-icon-size-xxs:15px;

tokens/dist/css/spectrum/custom-medium-vars.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
.spectrum--medium{
2-
/* edge-to-visual-only is used for icon-only buttons */
3-
--spectrum-edge-to-visual-only-75:4px;
4-
--spectrum-edge-to-visual-only-100:7px;
5-
--spectrum-edge-to-visual-only-200:10px;
6-
--spectrum-edge-to-visual-only-300:13px;
7-
82
--spectrum-slider-tick-mark-height:10px;
93
--spectrum-slider-ramp-track-height:16px;
104

@@ -61,7 +55,6 @@
6155
--spectrum-well-min-width:240px;
6256
--spectrum-well-border-radius:var(--spectrum-spacing-75);
6357

64-
--spectrum-icon-chevron-size-50:6px;
6558
/* XXL and XXS icon sizes are not within the design spec and are planned to be deprecated in Spectrum 2. */
6659
--spectrum-workflow-icon-size-xxl:32px;
6760
--spectrum-workflow-icon-size-xxs:12px;

tokens/dist/index.css

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2163,12 +2163,6 @@
21632163
--spectrum-font-size-1100:55px;
21642164
--spectrum-font-size-1200:62px;
21652165
--spectrum-font-size-1300:70px;
2166-
/* edge-to-visual-only is used for icon-only buttons */
2167-
--spectrum-edge-to-visual-only-75:5px;
2168-
--spectrum-edge-to-visual-only-100:9px;
2169-
--spectrum-edge-to-visual-only-200:13px;
2170-
--spectrum-edge-to-visual-only-300:16px;
2171-
21722166
--spectrum-slider-tick-mark-height:13px;
21732167
--spectrum-slider-ramp-track-height:20px;
21742168

@@ -2226,7 +2220,6 @@
22262220
--spectrum-well-min-width:300px;
22272221
--spectrum-well-border-radius:5px;
22282222

2229-
--spectrum-icon-chevron-size-50:8px;
22302223
/* XXL and XXS icon sizes are not within the design spec and are planned to be deprecated in Spectrum 2. */
22312224
--spectrum-workflow-icon-size-xxl:40px;
22322225
--spectrum-workflow-icon-size-xxs:15px;
@@ -3327,12 +3320,6 @@
33273320
--spectrum-font-size-1100:45px;
33283321
--spectrum-font-size-1200:50px;
33293322
--spectrum-font-size-1300:60px;
3330-
/* edge-to-visual-only is used for icon-only buttons */
3331-
--spectrum-edge-to-visual-only-75:4px;
3332-
--spectrum-edge-to-visual-only-100:7px;
3333-
--spectrum-edge-to-visual-only-200:10px;
3334-
--spectrum-edge-to-visual-only-300:13px;
3335-
33363323
--spectrum-slider-tick-mark-height:10px;
33373324
--spectrum-slider-ramp-track-height:16px;
33383325

@@ -3389,7 +3376,6 @@
33893376
--spectrum-well-min-width:240px;
33903377
--spectrum-well-border-radius:var(--spectrum-spacing-75);
33913378

3392-
--spectrum-icon-chevron-size-50:6px;
33933379
/* XXL and XXS icon sizes are not within the design spec and are planned to be deprecated in Spectrum 2. */
33943380
--spectrum-workflow-icon-size-xxl:32px;
33953381
--spectrum-workflow-icon-size-xxs:12px;

0 commit comments

Comments
 (0)