-
Notifications
You must be signed in to change notification settings - Fork 211
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
chore: remove 'theme' attribute from sp-theme #4765
Conversation
Lighthouse scores
What is this?Lighthouse scores comparing the documentation site built from the PR ("Branch") to that of the production documentation site ("Latest") and the build currently on Transfer Size
Request Count
|
Pull Request Test Coverage Report for Build 10906755209Details
💛 - Coveralls |
Tachometer resultsChromeaccordion permalinkbasic-test
action-bar permalinkbasic-test
action-button permalinkbasic-test
action-group permalinkbasic-test
action-menu permalinktest-basic
test-directive permalink
test-lazy permalink
test-open-close-directive permalink
test-open-close permalink
alert-banner permalinkbasic-test
alert-dialog permalinkbasic-test
asset permalinkbasic-test
avatar permalinktest-basic
badge permalinkbasic-test
breadcrumbs permalinkbasic-test
button-group permalinkbasic-test
button permalinktest-basic
card permalinktest-basic
checkbox permalinktest-basic
coachmark permalinkbasic-test
color-area permalinkbasic-test
color-field permalinkbasic-test
color-handle permalinkbasic-test
color-loupe permalinkbasic-test
color-slider permalinkbasic-test
color-wheel permalinkbasic-test
combobox permalinkbasic-test
light-dom-test permalink
contextual-help permalinkbasic-test
dialog permalinkbasic-test
divider permalinkbasic-test
dropzone permalinktest-basic
field-group permalinkbasic-test
field-label permalinkbasic-test
grid permalinkbasic-test
help-text permalinkbasic-test
icon permalinktest-basic
icons permalinktest-basic
illustrated-message permalinktest-basic
infield-button permalinkbasic-test
link permalinktest-basic
menu permalinktest-basic
meter permalinkbasic-test
number-field permalinkbasic-test
overlay permalinkbasic-test
directive-test permalink
element-test permalink
lazy-test permalink
picker-button permalinkbasic-test
picker permalinkbasic-test
popover permalinktest-basic
progress-bar permalinkbasic-test
progress-circle permalinkbasic-test
radio permalinktest-basic
search permalinktest-basic
sidenav permalinktest-basic
slider permalinktest-basic
split-view permalinkbasic-test
swatch permalinkbasic-test
switch permalinktest-basic
table permalinkbasic-test
tabs permalinkbasic-test
tags permalinkbasic-test
textfield permalinktest-basic
thumbnail permalinkbasic-test
toast permalinktest-basic
tooltip permalinktest-basic
test-directive permalink
test-element permalink
test-lazy permalink
top-nav permalinkbasic-test
tray permalinkbasic-test
truncated permalinkbasic-test
underlay permalinkbasic-test
Firefoxaccordion permalinkbasic-test
action-bar permalinkbasic-test
action-button permalinkbasic-test
action-group permalinkbasic-test
action-menu permalinktest-basic
test-directive permalink
test-lazy permalink
test-open-close-directive permalink
test-open-close permalink
alert-banner permalinkbasic-test
alert-dialog permalinkbasic-test
asset permalinkbasic-test
avatar permalinktest-basic
badge permalinkbasic-test
breadcrumbs permalinkbasic-test
button-group permalinkbasic-test
button permalinktest-basic
card permalinktest-basic
checkbox permalinktest-basic
coachmark permalinkbasic-test
color-area permalinkbasic-test
color-field permalinkbasic-test
color-handle permalinkbasic-test
color-loupe permalinkbasic-test
color-slider permalinkbasic-test
color-wheel permalinkbasic-test
combobox permalinkbasic-test
light-dom-test permalink
contextual-help permalinkbasic-test
dialog permalinkbasic-test
divider permalinkbasic-test
dropzone permalinktest-basic
field-group permalinkbasic-test
field-label permalinkbasic-test
grid permalinkbasic-test
help-text permalinkbasic-test
icon permalinktest-basic
icons permalinktest-basic
illustrated-message permalinktest-basic
infield-button permalinkbasic-test
link permalinktest-basic
menu permalinktest-basic
meter permalinkbasic-test
number-field permalinkbasic-test
overlay permalinkbasic-test
directive-test permalink
element-test permalink
lazy-test permalink
picker-button permalinkbasic-test
picker permalinkbasic-test
popover permalinktest-basic
progress-bar permalinkbasic-test
progress-circle permalinkbasic-test
radio permalinktest-basic
search permalinktest-basic
sidenav permalinktest-basic
slider permalinktest-basic
split-view permalinkbasic-test
swatch permalinkbasic-test
switch permalinktest-basic
table permalinkbasic-test
tabs permalinkbasic-test
tags permalinkbasic-test
textfield permalinktest-basic
thumbnail permalinkbasic-test
toast permalinktest-basic
tooltip permalinktest-basic
test-directive permalink
test-element permalink
test-lazy permalink
top-nav permalinkbasic-test
tray permalinkbasic-test
truncated permalinkbasic-test
underlay permalinkbasic-test
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! I have a question though. This does update the theme
attribute to system
in most of the places except for few of our internal testing/tooling workflow files like documentation-site
, web-test-runner.utils.js
etc. We'd probably want to update those for consistency purposes at some point of time too if not in this pr right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work Ruben! And I agree to Tarun's point. I see there are many number of places in the code where theme related grammer has been used which needs to be updated to system references. Let's try to change this very carefully
@@ -476,11 +440,6 @@ function checkForIssues( | |||
} | |||
}; | |||
|
|||
if (hasThemeAttribute) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we keep till all the downstream consumers has migrated to system? Just a thought
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be for taking advantage of the opportunity and clean it altogether. We are not doing this for any other deprecation removal in our system. Let me know what you think.
@@ -199,53 +199,4 @@ describe('Setting attributes', () => { | |||
).to.equal(3); | |||
} | |||
}); | |||
|
|||
it('prefers system over theme', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's keep this test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are removing the respective functionality, so there may not be anything left to test here. Please let me know if I’ve misunderstood your comment!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a test for system
!
I have now updated all instances of |
@@ -243,7 +243,6 @@ jobs: | |||
keys: | |||
- v2-golden-images-<< pipeline.parameters.current_golden_images_hash >>-hcm- | |||
- v2-golden-images-main-hcm- | |||
- v2-golden-images-main-spectrum-lightest-medium-ltr- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We removed the lightest
tests, so they are no longer part of our test suite. As a result, we will not be regenerating the v2-golden-images-main-spectrum-lightest-medium-ltr-
cache key. While we could change it to light
, these are fallback cache keys and are in order. The first two should be sufficient. These caches stay-alive time is 15 days on CircleCI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4ce09fa
into
ruben/remove-deprecations
* chore: remove 'variant' and 'static' attributes from coach-indicator (#4772) * chore: remove split-button component (#4729) * chore: remove banner component (#4723) * chore: remove deprecated badge values (#4742) * chore: remove sp-quick-actions (#4761) * chore: remove popover's dialog property (#4751) * chore: remove thumbnail deprecated sizes (#4760) * chore: remove progress-circle overBackground property (#4750) * chore: remove deprecated 'static' references (#4818) * chore: remove action-button variant property (#4741) * chore: remove 'theme' attribute from sp-theme (#4765) * feat: add 1.0.0 migration guide (#4776)
…4829) - feat(styles): add Spectrum 2 styles - feat(icons-workflow): add support for new Spectrum 2 icons (#4747) - feat(icon): add support for Spectrum 2 icons (#4747) - chore: remove pre-1.0.0 deprecations (#4828) - feat(coach-indicator)!: remove 'variant' and 'static' attributes from coach-indicator (#4772) - feat(split-button)!: remove split-button component (#4729) - feat(banner)!: remove banner component (#4723) - feat(badge)!: remove deprecated badge values (#4742) - feat(quick-actions)!: remove sp-quick-actions (#4761) - feat(popover)!: remove popover's dialog property (#4751) - feat(thumbnail)!: remove thumbnail deprecated sizes (#4760) - feat(progress-circle)!: remove progress-circle overBackground property (#4750) - feat(action-button,action-group,action-menu,button,link,meter,progress-bar): remove deprecated 'static' references (#4818) - feat(action-button)!: remove action-button variant property (#4741) - feat(theme)!: remove 'theme' attribute from sp-theme (#4765) - chore: make the spectrum-two theme fully functional (#4859) - chore: add 1.0.0 migration guide (#4776)
…4829) - feat(styles): add Spectrum 2 styles - feat(icons-workflow): add support for new Spectrum 2 icons (#4747) - feat(icon): add support for Spectrum 2 icons (#4747) - chore: remove pre-1.0.0 deprecations (#4828) - feat(coach-indicator)!: remove 'variant' and 'static' attributes from coach-indicator (#4772) - feat(split-button)!: remove split-button component (#4729) - feat(banner)!: remove banner component (#4723) - feat(badge)!: remove deprecated badge values (#4742) - feat(quick-actions)!: remove sp-quick-actions (#4761) - feat(popover)!: remove popover's dialog property (#4751) - feat(thumbnail)!: remove thumbnail deprecated sizes (#4760) - feat(progress-circle)!: remove progress-circle overBackground property (#4750) - feat(action-button,action-group,action-menu,button,link,meter,progress-bar): remove deprecated 'static' references (#4818) - feat(action-button)!: remove action-button variant property (#4741) - feat(theme)!: remove 'theme' attribute from sp-theme (#4765) - chore: make the spectrum-two theme fully functional (#4859) - chore: add 1.0.0 migration guide (#4776)
Description
Removed the deprecated
theme
attribute in thesp-theme
component, along with all associated references and dependencies.Related issue(s)
Motivation and context
For the upcoming 1.0.0 release of Spectrum Web Components, we will remove the deprecated components and features.
Types of changes
Checklist
Best practices
This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against
main
.