-
Notifications
You must be signed in to change notification settings - Fork 10
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
Added label property to the vaadin-radio-group #62
Conversation
Not really a fault of this PR, but it just highlights the problem that we have with styling, that there’s no good way to share styles between components (and we end up copy-pasting the label styles here). As a future enhancement, to keep it DRY, I suppose the best we could do is extract the label styles into a new style module in @platosha, thoughts? |
src/vaadin-radio-group.html, line 21 at r1 (raw file):
Lumo-specific stuff should be moved under themes/lumo/ Comments from Reviewable |
Review status: 0 of 4 files reviewed at latest revision, 1 unresolved discussion. demo/radio-group-demos.html, line 35 at r2 (raw file):
Do you mind to use a real use case here, lately we try not to use meaningless examples src/vaadin-radio-group.html, line 261 at r2 (raw file):
I think here you can safely use test/vaadin-radio-group.html, line 213 at r2 (raw file):
It's better assertion check that label has the actual value of 'foo' theme/lumo/vaadin-radio-group.html, line 12 at r2 (raw file):
You copied this from text-field, but I think the comment is not needed Comments from Reviewable |
Reviewed 4 of 4 files at r3. Comments from Reviewable |
Review status: all files reviewed at latest revision, 1 unresolved discussion. src/vaadin-radio-group.html, line 88 at r3 (raw file):
BTW misaligned JSDoc comment, one more whitespace in this line and below. Comments from Reviewable |
Reviewed 1 of 1 files at r4. Comments from Reviewable |
1 similar comment
Reviewed 1 of 1 files at r4. Comments from Reviewable |
Reviewed 3 of 4 files at r3. Comments from Reviewable |
Pull Request Test Coverage Report for Build 693
💛 - Coveralls |
Reviewed 1 of 1 files at r4, 2 of 3 files at r5, 7 of 7 files at r6. Comments from Reviewable |
c00e8a0
to
260481e
Compare
theme/material/vaadin-radio-group-styles.html, line 26 at r7 (raw file):
These transition properties are not used for anything since the label doesn't float Comments from Reviewable |
a discussion (no related file): Comments from Reviewable |
bafc487
to
2b27ae7
Compare
@tomivirkki foobar demo Reviewed 1 of 1 files at r7, 1 of 1 files at r9. Comments from Reviewable |
@manolo What about it? My commit removed the foobar demo. Comments from Reviewable |
Reviewed 2 of 2 files at r10. src/vaadin-radio-group.html, line 21 at r1 (raw file): Previously, tomivirkki (Tomi Virkki) wrote…
Done Comments from Reviewable |
1be493a
to
9b9f576
Compare
We did the same thing. Restored in your way and squashed my commits. Reviewed 2 of 2 files at r11. Comments from Reviewable |
Review status: 10 of 11 files reviewed, 3 unresolved discussions (waiting on @manolo, @tomivirkki, and @gatanaso) a discussion (no related file): Previously, tomivirkki (Tomi Virkki) wrote…
I see them aligned: http://g.recordit.co/wIp3kpQTvs.gif Comments from Reviewable |
ab113a6
to
cc14f64
Compare
Reviewed 1 of 3 files at r5, 1 of 7 files at r6, 1 of 2 files at r10, 2 of 2 files at r11, 1 of 1 files at r12, 5 of 5 files at r13. a discussion (no related file): Previously, manolo (Manuel Carrasco Moñino) wrote…
Seems to be ok. Comments from Reviewable |
a discussion (no related file): Previously, YuriyVaadin (Yuriy Yevstihnyeyev) wrote…
@yuriyvaadin your screenshots don't have the components wrapped in a flexbox Comments from Reviewable |
Review status: all files reviewed, 3 unresolved discussions (waiting on @tomivirkki and @manolo) a discussion (no related file): Previously, tomivirkki (Tomi Virkki) wrote…
Yeah, sorry. Just checked. The baseline is misaligned. Comments from Reviewable |
Review status: all files reviewed, 3 unresolved discussions (waiting on @tomivirkki) a discussion (no related file): Previously, YuriyVaadin (Yuriy Yevstihnyeyev) wrote…
I took a look to text-field and seems that covering baseline in a flex context needs much more work, basically some wrappers and styles for those. I'll try to figure out all the changes needed for that. Comments from Reviewable |
d30630f
to
cef0ff8
Compare
a discussion (no related file): Comments from Reviewable |
Reviewed 8 of 8 files at r14. Comments from Reviewable |
Reviewed 1 of 2 files at r15. a discussion (no related file): Previously, tomivirkki (Tomi Virkki) wrote…
Done Comments from Reviewable |
Reviewed 1 of 2 files at r15. Comments from Reviewable |
01dd774
to
f2dbbb8
Compare
Reviewed 7 of 8 files at r14, 2 of 2 files at r16. Comments from Reviewable |
Reviewed 1 of 3 files at r5, 1 of 7 files at r6, 1 of 2 files at r11, 7 of 8 files at r14, 2 of 2 files at r16. Comments from Reviewable |
theme/lumo/vaadin-radio-group-styles.html, line 5 at r16 (raw file):
Shouldn't say text-field Comments from Reviewable |
Review status: all files reviewed, 1 unresolved discussion (waiting on @gatanaso) theme/lumo/vaadin-radio-group-styles.html, line 5 at r16 (raw file): Previously, tomivirkki (Tomi Virkki) wrote…
Where is this even used? The whole concept of component-specific size properties in Lumo is not fully thought out, and I would avoid adding any more of these (IIRC text-field and button have them). Comments from Reviewable |
Review status: all files reviewed, 1 unresolved discussion (waiting on @tomivirkki) theme/lumo/vaadin-radio-group-styles.html, line 5 at r16 (raw file): Previously, jouni (Jouni Koivuviita) wrote…
@tomivirkki It's used in Comments from Reviewable |
Review status: 11 of 12 files reviewed, 1 unresolved discussion (waiting on @YuriyVaadin, @manolo, and @tomivirkki) theme/lumo/vaadin-radio-group-styles.html, line 5 at r16 (raw file): Previously, manolo (Manuel Carrasco Moñino) wrote…
Removed, setting value to Comments from Reviewable |
theme/lumo/vaadin-radio-group-styles.html, line 5 at r16 (raw file): Previously, manolo (Manuel Carrasco Moñino) wrote…
What I meant was that the name of the property should have been "--lumo-radio-group-size" instead of "--lumo-text-field-size". But if it's not needed, even better. Comments from Reviewable |
Reviewed 1 of 1 files at r17. Comments from Reviewable |
Connected to #19
This PR introduces a
label
property to the<vaadin-radio-group>
element.The label is styled according to the same rules used for other vaadin component labels.
This PR does not introduce the styles for
required
orerror
states of the component, since those are not yet available as properties.This change is