Skip to content

Commit 24d75bf

Browse files
authored
fix: minor linting fixes (#4088)
Addresses minor linting fixes across multiple components. Changes include: - Fixed whitespace issues in changelog files - Corrected stylelint warnings across 19 components - Updated stylelint configuration for validation of class names in themes The changes are primarily cosmetic and focus on code quality improvements without affecting functionality.
1 parent 7366a9b commit 24d75bf

File tree

94 files changed

+90
-191
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+90
-191
lines changed

.changeset/chubby-places-ring.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
"@spectrum-css/actionbutton": patch
3+
"@spectrum-css/alertbanner": patch
4+
"@spectrum-css/colorhandle": patch
5+
"@spectrum-css/colorslider": patch
6+
"@spectrum-css/inlinealert": patch
7+
"@spectrum-css/accordion": patch
8+
"@spectrum-css/assetcard": patch
9+
"@spectrum-css/thumbnail": patch
10+
"@spectrum-css/calendar": patch
11+
"@spectrum-css/dropzone": patch
12+
"@spectrum-css/underlay": patch
13+
"@spectrum-css/sidenav": patch
14+
"@spectrum-css/tooltip": patch
15+
"@spectrum-css/swatch": patch
16+
"@spectrum-css/radio": patch
17+
"@spectrum-css/table": patch
18+
"@spectrum-css/card": patch
19+
"@spectrum-css/menu": patch
20+
"@spectrum-css/well": patch
21+
---
22+
23+
Minor linting fix of replacing `rgba` to the `rgb` shorthand syntax.

components/accordion/CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ To render a component that can be easily swapped between the S2 Foundations, S1,
9898
📝 [#3502](https://github.com/adobe/spectrum-css/pull/3502) [`562396e`](https://github.com/adobe/spectrum-css/commit/562396eaf21769341f78ea3761393b65f00e751b) Thanks [@castastrophe](https://github.com/castastrophe)!
9999

100100
- Remove empty theme references to reduce complexity for components that don't need to define any mappings. This involves removing the source `themes` directories with the empty `spectrum.css` and `express.com` files as well as removing the following empty or unnecessary exports:
101-
102101
- `index-base.css`
103102
- `index-theme.css`
104103
- `themes/spectrum.css`

components/accordion/index.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444
--spectrum-accordion-item-content-line-height: var(--spectrum-line-height-100);
4545

4646
/* Colors */
47-
--spectrum-accordion-background-color-default: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-default));
48-
--spectrum-accordion-background-color-hover: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-hover));
49-
--spectrum-accordion-background-color-down: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-down));
50-
--spectrum-accordion-background-color-key-focus: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-key-focus));
47+
--spectrum-accordion-background-color-default: rgb(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-default));
48+
--spectrum-accordion-background-color-hover: rgb(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-hover));
49+
--spectrum-accordion-background-color-down: rgb(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-down));
50+
--spectrum-accordion-background-color-key-focus: rgb(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-key-focus));
5151

5252
/* Label */
5353
--spectrum-accordion-item-header-color-default: var(--spectrum-neutral-content-color-default);

components/actionbar/CHANGELOG.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ To render a component that can be easily swapped between the S2 Foundations, S1,
115115
📝 [#3502](https://github.com/adobe/spectrum-css/pull/3502) [`562396e`](https://github.com/adobe/spectrum-css/commit/562396eaf21769341f78ea3761393b65f00e751b) Thanks [@castastrophe](https://github.com/castastrophe)!
116116

117117
- Remove empty theme references to reduce complexity for components that don't need to define any mappings. This involves removing the source `themes` directories with the empty `spectrum.css` and `express.com` files as well as removing the following empty or unnecessary exports:
118-
119118
- `index-base.css`
120119
- `index-theme.css`
121120
- `themes/spectrum.css`
@@ -350,7 +349,6 @@ Create custom properties with tokens from the default "Table" and
350349
"Selection" sections of the design.
351350

352351
- feat(table): use new tokens in styles
353-
354352
- Use new tokens in styles, first pass with regular/default
355353
- Set custom properties for variants + sizes to simplify styles
356354
- Remove repeated %drop-target placeholder selector style rule
@@ -447,7 +445,6 @@ Add control to Table storybook to use the div element markup instead of
447445
table element markup, to match the example in the docs.
448446

449447
- feat(table): new collapsible variant and minor adjustments
450-
451448
- Adds new Collapsible variant.
452449
- Puts heading row text into span and adds note to docs.
453450
- Allows optional array of strings for cellContent in Storybook.
@@ -469,14 +466,12 @@ Add variant that includes the thumbnail component within the table. Adds
469466
to storybook and examples.
470467

471468
- feat(table): thumbnail variant and storybook refactor
472-
473469
- Add new thumbnails variant.
474470
- Avoid duplication of divs and table markup in Storybook by including
475471
a conditional dynamic tag.
476472
- Remove inline flex styles from div example markup.
477473

478474
- refactor(table)!: change div to table display and refactor dropzone
479-
480475
- Changes div-based table to use table display properties, to ensure
481476
that it displays the same as the table-based markup. The flex based
482477
styles incorporated from the example markup have issues with handling
@@ -491,7 +486,6 @@ to storybook and examples.
491486
Using CSS grid is currently a no-go because of the lingering
492487
accessibility bugs associated with 'display: contents' (and subgrid
493488
still farther out from browser support).
494-
495489
- Refactors out unnecessary CSS after the previously noted change. No
496490
longer necessary to handle 'tbody' differently when it is a div.
497491

@@ -504,12 +498,10 @@ to storybook and examples.
504498
This also fixes the existing bug where table dropzone will not show
505499
the blue color across the entire table (scrolling down on existing
506500
example).
507-
508501
- Adds dropzone to Storybook. Control for table dropzone and row data +
509502
a new story for row dropzone.
510503

511504
- fix(table): update mods and dropzone outline offset
512-
513505
- Update generated moddable custom properties.
514506
- Remove negative outline offset for dropzone to avoid child cell
515507
borders showing 1px on top of it.
@@ -560,7 +552,6 @@ Fixes
560552
- Move header colors out of sortable (dark theme fix)
561553
- Typo fix for one of the borders
562554
- Change one of the lingering margin properties to its logical property
563-
564555
- feat(table): unique mods for all variants
565556

566557
Technique to include unique custom property mods for the different
@@ -580,7 +571,6 @@ Add custom property mods for the value of the 'cursor' property. Regular
580571
rows may not always need to show a pointer.
581572

582573
- feat(table): new hover and active bg colors prototype
583-
584574
- Active color on rows
585575
- Hover color on selected rows
586576

@@ -601,15 +591,13 @@ some of these states.
601591
## Also updates generated mods
602592

603593
- fix(table): additional high contrast colors update
604-
605594
- Adds hover and focus high contrast color styles.
606595
- Changes high contrast colors on section header.
607596
- Addresses high contrast icon colors for various states. Gives them the
608597
proper foreground given their background, and highlights the header
609598
icon on hover and focus.
610599

611600
- fix(table): checkboxCell spacing adjustment and freshen up branch
612-
613601
- Fixes spacing with checkboxCells, by switching to margin instead of
614602
padding. Spacing token is right from the edge of the checkbox, and
615603
otherwise there is too much extra space from the row's line-height
@@ -643,7 +631,6 @@ Use newly released tokens to:
643631

644632
- Replace hardcoded values for hover and active background colors.
645633
- Set thumbnail variant spacing, now with both density + size values.
646-
647634
- feat(table): finalize vertical alignment spacing with new tokens
648635

649636
Adjustments to make sure that cells maintain the same padding-block and
@@ -658,7 +645,6 @@ density + sizing.
658645
New snapshot tokens version with one more missing token.
659646

660647
- fix(table): fix sizing token names with densities and whcm supports
661-
662648
- Fix name of tokens for large and extra large with densities
663649
- Include @supports with fallback for usage of SelectedItem and
664650
SelectedItemText system colors, because they are fairly new.
@@ -724,7 +710,6 @@ tabindex from rows in multi-select variants with the checkbox cells.
724710
- style(checkbox): fix tabs indentation on additions for indeterminate
725711

726712
- fix(table): cleanup for scrollable and swc
727-
728713
- General cleanup for scrollable.
729714
- Simplify some checkbox box styles.
730715
- Avoid use of 'div' in selector to improve conversion to SWC.
@@ -736,12 +721,10 @@ requested "Column title". Following the Adobe Grammar & Mechanics UX
736721
writing style.
737722

738723
- docs(table): minor example docs updates
739-
740724
- Clarify some language.
741725
- Make sure all (second) columns marked as sortable are focusable.
742726

743727
- fix(table): adjustments to quiet scrollable
744-
745728
- Finalize quiet scrollable.
746729
- Use sentence case in Storybook as well.
747730

components/actionbutton/CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ This also includes a forced-colors/high contrast mode fix for the selected + dis
2323
📝 [#3540](https://github.com/adobe/spectrum-css/pull/3540) [`a8bb0b8`](https://github.com/adobe/spectrum-css/commit/a8bb0b89a5fe1cc9d09edf6a1d2249dde930757a) Thanks [@marissahuysentruyt](https://github.com/marissahuysentruyt)!
2424

2525
- S2 Foundations fixes
26-
2726
- Adjusts corner rounding for S2 foundations to follow S2 action button corner rounding, particularly to help give additional space to the help/corner triangle icon:
2827
- corner-radius-medium-size-extra-small
2928
- corner-radius-medium-size-small

components/actionbutton/themes/express.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@
4646

4747
&.spectrum-ActionButton--staticBlack {
4848
--spectrum-actionbutton-background-color-disabled: transparent;
49+
--spectrum-actionbutton-background-color-default: var(--spectrum-transparent-black-200);
50+
--spectrum-actionbutton-background-color-hover: var(--spectrum-transparent-black-300);
51+
--spectrum-actionbutton-background-color-down: var(--spectrum-transparent-black-400);
52+
--spectrum-actionbutton-background-color-focus: var(--spectrum-transparent-black-300);
4953

50-
&,
5154
&.spectrum-ActionButton--quiet {
5255
--spectrum-actionbutton-background-color-default: var(--spectrum-transparent-black-200);
5356
--spectrum-actionbutton-background-color-hover: var(--spectrum-transparent-black-300);
@@ -58,8 +61,11 @@
5861

5962
&.spectrum-ActionButton--staticWhite {
6063
--spectrum-actionbutton-background-color-disabled: transparent;
64+
--spectrum-actionbutton-background-color-default: var(--spectrum-transparent-white-200);
65+
--spectrum-actionbutton-background-color-hover: var(--spectrum-transparent-white-300);
66+
--spectrum-actionbutton-background-color-down: var(--spectrum-transparent-white-400);
67+
--spectrum-actionbutton-background-color-focus: var(--spectrum-transparent-white-300);
6168

62-
&,
6369
&.spectrum-ActionButton--quiet {
6470
--spectrum-actionbutton-background-color-default: var(--spectrum-transparent-white-200);
6571
--spectrum-actionbutton-background-color-hover: var(--spectrum-transparent-white-300);

components/alertbanner/index.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
--spectrum-alert-banner-negative-background: var(--spectrum-negative-background-color-default);
3535
--spectrum-alert-banner-font-color: var(--spectrum-white);
3636

37+
/* @passthrough start */
3738
/* settings for nested Divider */
3839
--mod-divider-vertical-margin: var(--mod-alert-banner-edge-to-divider, var(--spectrum-alert-banner-edge-to-divider));
3940
--mod-divider-vertical-height: auto;
@@ -48,6 +49,7 @@
4849
--mod-closebutton-margin-inline: var(--mod-alert-banner-close-button-spacing, var(--spectrum-alert-banner-close-button-spacing));
4950
--mod-closebutton-margin-top: var(--mod-alert-banner-close-button-spacing, var(--spectrum-alert-banner-close-button-spacing));
5051
--mod-closebutton-align-self: flex-start;
52+
/* @passthrough end */
5153

5254
display: none;
5355
justify-content: space-between;

components/alertdialog/CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ To render a component that can be easily swapped between the S2 Foundations, S1,
112112
📝 [#3502](https://github.com/adobe/spectrum-css/pull/3502) [`562396e`](https://github.com/adobe/spectrum-css/commit/562396eaf21769341f78ea3761393b65f00e751b) Thanks [@castastrophe](https://github.com/castastrophe)!
113113

114114
- Remove empty theme references to reduce complexity for components that don't need to define any mappings. This involves removing the source `themes` directories with the empty `spectrum.css` and `express.com` files as well as removing the following empty or unnecessary exports:
115-
116115
- `index-base.css`
117116
- `index-theme.css`
118117
- `themes/spectrum.css`

components/asset/CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ To render a component that can be easily swapped between the S2 Foundations, S1,
9090
📝 [#3502](https://github.com/adobe/spectrum-css/pull/3502) [`562396e`](https://github.com/adobe/spectrum-css/commit/562396eaf21769341f78ea3761393b65f00e751b) Thanks [@castastrophe](https://github.com/castastrophe)!
9191

9292
- Remove empty theme references to reduce complexity for components that don't need to define any mappings. This involves removing the source `themes` directories with the empty `spectrum.css` and `express.com` files as well as removing the following empty or unnecessary exports:
93-
9493
- `index-base.css`
9594
- `index-theme.css`
9695
- `themes/spectrum.css`

components/assetcard/CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ To render a component that can be easily swapped between the S2 Foundations, S1,
9696
📝 [#3359](https://github.com/adobe/spectrum-css/pull/3359) [`c8194b0`](https://github.com/adobe/spectrum-css/commit/c8194b0a5b6e115d7db680f287eb8a2a9709906b) Thanks [@cdransf](https://github.com/cdransf)!
9797

9898
- This resolves our remaining stylelint issues around undefined tokens, rule order, unused values and color syntax.
99-
10099
- Updates invalid color syntax from `rgba(N, N, N, N)` to `rgba(N N N / N)`.
101100
- In cases of duplicate properties, preserves the property that would be applied given current code structure.
102101
- Updates misnamed tokens to use valid tokens (`table/index.css`).

0 commit comments

Comments
 (0)