-
Notifications
You must be signed in to change notification settings - Fork 205
feat(backgroundlayers): class based implementation [CSS-1268] #2368
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
base: spectrum-two
Are you sure you want to change the base?
Conversation
61a87a1
to
c9dadf3
Compare
d2ac17c
to
b2fee42
Compare
31afc05
to
909f232
Compare
9a01c5a
to
1b959b3
Compare
98335ab
to
fec70b3
Compare
7c86724
to
0a218bc
Compare
0f20c5b
to
9ff2a2c
Compare
4d9e185
to
a81c712
Compare
e03868f
to
b3b3aa5
Compare
f3dd9ff
to
9931a8e
Compare
905c91b
to
8f768fd
Compare
dee81f5
to
ce2f3e0
Compare
3499231
to
ad861d0
Compare
7e8269c
to
4ce8d19
Compare
8a0bac8
to
8cdffb5
Compare
|
6922285
to
feb718e
Compare
📚 Branch previewPR #2368 has been deployed to Azure Blob Storage: https://spectrumcss.z13.web.core.windows.net/pr-2368/index.html. |
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.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
eslint
Expected indentation of 1 tab but found 2 spaces.
🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'id' is defined but never used.
Expected indentation of 1 tab but found 2 spaces.
customClasses = [], |
Expected indentation of 1 tab but found 2 spaces.
return html` |
@@ -0,0 +1,69 @@ | |||
import { Template } from "./template"; | |||
import { html } from 'lit'; |
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.
import { html } from 'lit'; | ||
|
||
export default { | ||
title: "UtilityClasses/Background layers", |
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.
|
||
export default { | ||
title: "UtilityClasses/Background layers", | ||
description: "The background layers is a series of classes used to style background layers.", |
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.
export default { | ||
title: "UtilityClasses/Background layers", | ||
description: "The background layers is a series of classes used to style background layers.", | ||
component: "BackgroundLayers", |
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.
title: "UtilityClasses/Background layers", | ||
description: "The background layers is a series of classes used to style background layers.", | ||
component: "BackgroundLayers", | ||
argTypes: {}, |
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.
@@ -0,0 +1,22 @@ | |||
import { html } from 'lit'; |
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.
@@ -0,0 +1,22 @@ | |||
import { html } from 'lit'; | |||
import { classMap } from 'lit/directives/class-map.js'; |
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.
import "../index.css"; | ||
|
||
export const Template = ({ | ||
rootClass = "spectrum-BackgroundLayers", |
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.
|
||
export const Template = ({ | ||
rootClass = "spectrum-BackgroundLayers", | ||
style, |
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.
export const Template = ({ | ||
rootClass = "spectrum-BackgroundLayers", | ||
style, | ||
layer, |
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.
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.
File metricsSummaryTotal size: 1.43 MB* 🎉 No changes detected in any packages * Size is the sum of all main files for packages in the library.* An ASCII character in UTF-8 is 8 bits or 1 byte. |
47f9fc8
to
efc91bf
Compare
efc91bf
to
b6ab87c
Compare
Description
Creates utility classes which can be used by adding background layers to the dependencies for the component and then using the classes where needed.
Changes:
View Comments from previous branch for background layers that is now closed: #2274
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
Regression testing
Validate:
Screenshots
To-do list