Skip to content

fix: restore undefined custom properties [part 4] #3473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jan 6, 2025

Conversation

jawinn
Copy link
Collaborator

@jawinn jawinn commented Jan 3, 2025

Description

Restore missing custom properties from the foundations spectrum two theme files that were flagged by the linter. This fixes linter errors for the following components: search, combobox, colorwheel, assetcard, and treeview.

CSS-1086

How and where has this been tested?

Please tag yourself on the tests you've marked complete to confirm the tests have been run by someone other than the author.

Validation steps

Checked by @5t3ph

  • yarn linter search no longer shows errors or warnings
  • yarn linter combobox no longer shows errors or warnings
  • yarn linter colorwheel no longer shows errors or warnings
  • yarn linter assetcard no longer shows errors or warnings
  • yarn linter treeview no longer shows errors or warnings

To-do list

Copy link

changeset-bot bot commented Jan 3, 2025

🦋 Changeset detected

Latest commit: d8f691d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@spectrum-css/colorwheel Patch
@spectrum-css/assetcard Patch
@spectrum-css/combobox Patch
@spectrum-css/treeview Patch
@spectrum-css/search Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Jan 3, 2025

🚀 Deployed on https://pr-3473--spectrum-css.netlify.app

Copy link
Contributor

github-actions bot commented Jan 3, 2025

File metrics

Summary

Total size: 1.73 MB*
Total change (Δ): 🔴 ⬆ 1.84 KB (0.10%)

Table reports on changes to a package's main file. Other changes can be found in the collapsed Details section below.

Package Size Δ
assetcard 16.14 KB 🔴 ⬆ 0.50 KB
colorwheel 4.39 KB 🔴 ⬆ 0.08 KB
combobox 28.64 KB 🔴 ⬆ 0.42 KB
search 11.37 KB 🔴 ⬆ 0.73 KB
treeview 17.71 KB 🔴 ⬆ 0.15 KB

Details

assetcard

Filename Head Compared to base
index.css 16.14 KB 🔴 ⬆ 0.50 KB (3.13%)

colorwheel

Filename Head Compared to base
index.css 4.39 KB 🔴 ⬆ 0.08 KB (1.72%)

combobox

Filename Head Compared to base
index.css 28.64 KB 🔴 ⬆ 0.42 KB (1.46%)

search

Filename Head Compared to base
index.css 11.37 KB 🔴 ⬆ 0.73 KB (6.69%)

treeview

Filename Head Compared to base
index.css 17.71 KB 🔴 ⬆ 0.15 KB (0.85%)
* Size determined by adding together the size of the main file for all packages in the library.
* Results are not gzipped or minified.
* An ASCII character in UTF-8 is 8 bits or 1 byte.

@jawinn jawinn force-pushed the jawinn/css-1086-s2-undefined-4 branch from 1768d2b to 573ed15 Compare January 3, 2025 16:17
@jawinn jawinn force-pushed the jawinn/css-1086-s2-undefined-4 branch from 573ed15 to b72d9bc Compare January 3, 2025 16:27
@5t3ph 5t3ph self-requested a review January 3, 2025 19:08
Copy link
Contributor

@5t3ph 5t3ph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All clear!

Copy link
Collaborator

@marissahuysentruyt marissahuysentruyt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Things are looking good, except for combobox I believe. I don't get any errors, but I did get a few warnings about undefined --highcontrast-* variables:

Screenshot 2025-01-03 at 3 41 08 PM

Looks like they're actually related to the textfield that combobox uses. It looks like they're defined in main: https://github.com/adobe/spectrum-css/blob/main/components/textfield/index.css#L668 and in s2-foundations-redux: https://github.com/adobe/spectrum-css/blame/s2-foundations-redux/components/textfield/index.css#L648

If they're textfield custom properties, that might be taken care of in another PR, so maybe this comment can be disregarded!

Copy link
Collaborator

@marissahuysentruyt marissahuysentruyt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After some troubleshooting, this is looking great! Thanks for your help and the reminder for yarn clean 👍

jawinn added 6 commits January 6, 2025 11:34
Restore missing properties from foundations, most of which were flagged
by the linter.
Restore missing properties from foundations that were flagged
by the linter.
Restore missing properties from foundations that were flagged
by the linter.
Restore missing properties from foundations that were flagged
by the linter.
Restore missing properties from foundations that were flagged
by the linter. Also removes a group of duplicate custom property
definitions that were flagged.
@jawinn jawinn force-pushed the jawinn/css-1086-s2-undefined-4 branch from 27e0774 to d8f691d Compare January 6, 2025 16:34
@jawinn jawinn merged commit ab2028a into spectrum-two Jan 6, 2025
12 checks passed
@jawinn jawinn deleted the jawinn/css-1086-s2-undefined-4 branch January 6, 2025 16:45
castastrophe pushed a commit that referenced this pull request Jan 17, 2025
* fix(search): restore missing custom properties
* fix(colorwheel): restore missing custom properties
* fix(assetcard): restore missing custom properties
* fix(treeview): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter.

* fix(combobox): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter. Also removes a group of duplicate custom property
definitions that were flagged.
castastrophe pushed a commit that referenced this pull request Jan 17, 2025
* fix(search): restore missing custom properties
* fix(colorwheel): restore missing custom properties
* fix(assetcard): restore missing custom properties
* fix(treeview): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter.

* fix(combobox): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter. Also removes a group of duplicate custom property
definitions that were flagged.
castastrophe pushed a commit that referenced this pull request Jan 21, 2025
* fix(search): restore missing custom properties
* fix(colorwheel): restore missing custom properties
* fix(assetcard): restore missing custom properties
* fix(treeview): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter.

* fix(combobox): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter. Also removes a group of duplicate custom property
definitions that were flagged.
castastrophe pushed a commit that referenced this pull request Jan 22, 2025
* fix(search): restore missing custom properties
* fix(colorwheel): restore missing custom properties
* fix(assetcard): restore missing custom properties
* fix(treeview): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter.

* fix(combobox): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter. Also removes a group of duplicate custom property
definitions that were flagged.
castastrophe pushed a commit that referenced this pull request Feb 5, 2025
* fix(search): restore missing custom properties
* fix(colorwheel): restore missing custom properties
* fix(assetcard): restore missing custom properties
* fix(treeview): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter.

* fix(combobox): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter. Also removes a group of duplicate custom property
definitions that were flagged.
castastrophe pushed a commit that referenced this pull request Feb 7, 2025
* fix(search): restore missing custom properties
* fix(colorwheel): restore missing custom properties
* fix(assetcard): restore missing custom properties
* fix(treeview): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter.

* fix(combobox): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter. Also removes a group of duplicate custom property
definitions that were flagged.
castastrophe pushed a commit that referenced this pull request Feb 7, 2025
* fix(search): restore missing custom properties
* fix(colorwheel): restore missing custom properties
* fix(assetcard): restore missing custom properties
* fix(treeview): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter.

* fix(combobox): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter. Also removes a group of duplicate custom property
definitions that were flagged.
castastrophe pushed a commit that referenced this pull request Feb 7, 2025
* fix(search): restore missing custom properties
* fix(colorwheel): restore missing custom properties
* fix(assetcard): restore missing custom properties
* fix(treeview): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter.

* fix(combobox): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter. Also removes a group of duplicate custom property
definitions that were flagged.
castastrophe pushed a commit that referenced this pull request Feb 11, 2025
* fix(search): restore missing custom properties
* fix(colorwheel): restore missing custom properties
* fix(assetcard): restore missing custom properties
* fix(treeview): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter.

* fix(combobox): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter. Also removes a group of duplicate custom property
definitions that were flagged.
castastrophe pushed a commit that referenced this pull request Feb 24, 2025
* fix(search): restore missing custom properties
* fix(colorwheel): restore missing custom properties
* fix(assetcard): restore missing custom properties
* fix(treeview): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter.

* fix(combobox): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter. Also removes a group of duplicate custom property
definitions that were flagged.
castastrophe pushed a commit that referenced this pull request Feb 24, 2025
* fix(search): restore missing custom properties
* fix(colorwheel): restore missing custom properties
* fix(assetcard): restore missing custom properties
* fix(treeview): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter.

* fix(combobox): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter. Also removes a group of duplicate custom property
definitions that were flagged.
castastrophe pushed a commit that referenced this pull request Feb 25, 2025
* fix(search): restore missing custom properties
* fix(colorwheel): restore missing custom properties
* fix(assetcard): restore missing custom properties
* fix(treeview): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter.

* fix(combobox): restore missing custom properties

Restore missing properties from foundations that were flagged
by the linter. Also removes a group of duplicate custom property
definitions that were flagged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants