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
505/Tile Select Component #752
Conversation
eriklharper
commented
Jul 23, 2020
…'s not what normal radio inputs do and we also need to set a value without it displaying for the new tile-select component
…render just a radio when a label isn't present
…yling from tile-select programmatically. Also adding hide-input property to implement the basic view
…really relevant for checkboxes)
…checkbox when omitting the value attribute for convenience when using with calcite-tile-select
…ed standalone but embeddable for calcite-tile-select
…description text takes full horizontal space
…correct focusing behavior
…mo for completeness
…rid where it makes sense to and use absolute positioning where it makes sense
@eriklharper want to sort out conflicts and we can get this in... My only question is re: nomenclature of the wrapping component... should we use |
Word. Would love to get this in. Last little bit I almost have done is just the story file for As far as the wrapping component name goes, I named the component |
That nomenclature makes sense - I think my only other feedback is we can probably lose the |
@eriklharper yeah im not sure what the embed was for either. what was the reason for it? |
I built
If we don't need to support use case 1 we would get rid of |
No tile is definitely justified @eriklharper. Just referring to the "embed" style on the dev demo page for calcite-tile not being needed :) |
Totally gotcha now! I'll remove that from the demo, cause yeah that's just really a quasi-internal thing that's only used for |
…radio-tile-component
Ok I'm all done now with the stories. Thanks @macandcheese for helping me fix my issue with storybook. Everything looks ready to go now. |
:host([icon][heading]:not([description]):not([embed])) { | ||
padding: unset; | ||
} | ||
.tile { |
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 think you could remove some of the nesting here. It doesn't really matter a ton because shadow dom makes css life much easier, but in theory you'd save some precious bytes.
.tile {
display: grid;
grid-template-columns: 1fr;
grid-gap: $spacing;
}
.heading {
@include font-size(0);
color: var(--calcite-ui-text-1);
font-weight: 500;
}
.large-visual {
justify-items: center;
min-height: 200px;
.icon {
align-self: self-end;
}
.heading {
align-self: center;
}
}
.description {
@include font-size(-1);
color: var(--calcite-ui-text-2);
}
So are all the indentation changes from prettier, or how did that happen? @jcfranco I think set up tooling to auto indent, but not sure how it's different or why those diffs are there. Anyways, had a couple comments, but looks good, nice work @eriklharper ! |
I was wondering the same thing. I wonder if I try to ditch all those changes (pull them from master) if they will regenerate. I'll try that. |
a9e9156
to
62e4f89
Compare
…radio-tile-component
bfad726
to
ef64f34
Compare
Yay! Awesome work Erik!!!! 🇺🇸 |