-
Notifications
You must be signed in to change notification settings - Fork 204
docs(swatch,swatchgroup,table,tabs): docs migrations to storybook #2925
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
Changes from all commits
de242a1
2e39538
1b4239b
80aa6f6
cb994a8
0e74505
d350766
81b24b5
0eb3e52
8348027
7c23e81
ac722fd
003070c
514792a
33fb0fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,11 +19,45 @@ export const SwatchGroup = Variants({ | |
testHeading: "Full rounding", | ||
rounding: "full" | ||
}, | ||
{ | ||
testHeading: "Light border", | ||
borderStyle: "lightBorder", | ||
}, | ||
{ | ||
testHeading: "No border", | ||
borderStyle: "noBorder", | ||
rounding: "none", | ||
Comment on lines
+27
to
+29
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When this test case goes through the "no color" state, how can I override the no border styles? The no color should always have a border, but this test case is specifically for "no border," so would we be looking at a CSS change for the |
||
}, | ||
{ | ||
testHeading: "Shape: rectangle", | ||
shape: "rectangle", | ||
}, | ||
{ | ||
testHeading: "Gradient", | ||
gradient: "linear-gradient(to right, rgba(0, 0, 0, 88%), rgb(174, 216, 230))", | ||
swatchColor: "rgba(174, 216, 230, 0.3)", | ||
}, | ||
{ | ||
testHeading: "Image", | ||
imageUrl: "example-ava@2x.png", | ||
}, | ||
{ | ||
testHeading: "Mixed value", | ||
isMixedValue: true, | ||
}, | ||
], | ||
stateData: [ | ||
{ | ||
testHeading: "No color", | ||
swatchColor: undefined | ||
testHeading: "Disabled", | ||
isDisabled: true, | ||
}, | ||
{ | ||
testHeading: "No color/empty", | ||
swatchColor: undefined, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I could also just add Is this a question for design? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re: this and your other no-color question above: How do you feel about potentially pulling "no color" out from the I believe you said that light border should only be used in the case where the swatch color has low contrast with its background? So in that case I wouldn't show no-color and light-border together in Storybook (ditto with the no border), but I'm unsure if we'd need to prevent those classnames applying their styles simultaneously in the CSS, that feels more like an implementation detail that can be included in the documentation. I didn't see any guidance about no-color needing to have a border in the internal docs, but it certainly could be a helpful thing to add here in Storybook while you're working on it! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We did talk briefly in our group pairing about this test. I didn't opt for the Looking ahead to swatch in S2, the empty swatch does have the default border, and none of the examples for swatch or swatchgroup have the noBorder option. I think that noBorder option in S1 is really what is throwing off this no-color test case. I could definitely just pull it out of ![]() In this commit, I favored a little preparation for S2 and to avoid the What do you think though? Maybe this is something to bring up with the larger group? |
||
imageUrl: "", | ||
gradient: "", | ||
isMixedValue: false, | ||
borderStyle: "default", | ||
}, | ||
{ | ||
testHeading: "Selected", | ||
|
Uh oh!
There was an error while loading. Please reload this page.