mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
Ensure consistent input heights in flex/grid containers (#1915)
* apply flex rules to `form-control` parts * prevent input heights from growing in flex containers * change approach: ignore `form-control` wrapper for styling
This commit is contained in:
@@ -6,7 +6,6 @@ export default css`
|
|||||||
}
|
}
|
||||||
|
|
||||||
.text-field {
|
.text-field {
|
||||||
flex: auto;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
justify-content: start;
|
justify-content: start;
|
||||||
|
|||||||
@@ -6,6 +6,11 @@ export default css`
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Treat wrapped labels, inputs, and hints as direct children of the host element */
|
||||||
|
[part~='form-control'] {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
:is([part~='form-control-label'], [part~='label']):has(*:not(:empty)),
|
:is([part~='form-control-label'], [part~='label']):has(*:not(:empty)),
|
||||||
:is([part~='form-control-label'], [part~='label']).has-label {
|
:is([part~='form-control-label'], [part~='label']).has-label {
|
||||||
|
|||||||
Reference in New Issue
Block a user