Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Valo and Material form layout #5

Closed
jouni opened this issue Apr 12, 2017 · 2 comments
Closed

Valo and Material form layout #5

jouni opened this issue Apr 12, 2017 · 2 comments

Comments

@jouni
Copy link
Member

jouni commented Apr 12, 2017

The things a theme can control in a form:

  • The gap between the label and the field, when the label is on the side of the field
  • The font styles of the form item label, including text alignment (left/right)

The gaps can be controlled with CSS custom properties.

I’m not 100% sure about the approach for the label, as it’s going to be slotted content. Should we target them with ::slotted(*) and apply correct font styles?

The default gap between columns should be 32px, and the default gap between the label and the field should be 16px.

@jouni jouni added the design label Apr 12, 2017
@platosha
Copy link
Contributor

Usually fonts are inherited. We can set label styles on the label slot wrapper, in the shadow DOM of the form item then.

@jouni jouni mentioned this issue Apr 18, 2017
@jouni jouni changed the title Material form layout Valo and Material form layout Jun 30, 2017
@jouni
Copy link
Member Author

jouni commented Sep 8, 2017

This issue was moved to vaadin/vaadin-material-styles#6

@jouni jouni closed this as completed Sep 8, 2017
@jouni jouni removed the design label Sep 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants