I’ve found that the text in the Label component does not line up (controls are side by side) with the text in a Drop Down component ie. the Drop Down component’s text sits ~4 pixels higher than the Label component. So I made a change to theme.css to fix this.
Is me changing theme.css ok? Is this considered a bug in the Material Design? If I make changes to theme.css and you guys decide to update Material Design’s theme.css, will my changes be lost (I assume yes).
What should the best practice be in this situation?
You can set the Label’s role property to input-prompt to make it line up with input controls (TextBoxes, DropDowns, etc)! You can find more tips and tricks like this in our guide to the Material Design theme.
Changing theme.css is an entirely legitimate thing to do, but if you had needed to edit the CSS for something simple like this, we’d probably have considered it a bug. Thankfully, there’s already a way to do it
No.
When you create an app you get the theme folder from the template. After that you can modify it and there is no link with the template.
In my company we use our own standard theme app to test our standard-page.html and theme.css.
When we change it we use git to pull, copy the whole theme folder and push as suggested here. We manually repeat this process with all the apps that share our standard theme (until the Anvil guys will give us an official way to include the theme in the dependencies).
I will add a comment to this post instead of creating a new one because it seems to be in topic: I noticed that after clicking on the edit button on this show & tell app, the dropdown appears one pixel higher and the textbox appears one pixel lower compared to the text of their labels.