Change height and font-size below the size="small" #2297
Answered
by
claviska
goosedeersolutions
asked this question in
Help
-
I am trying to add an input into a data table of mine but it is too tall, even with I have tried the following with not luck: wa-input {
.input {
height: 1px !important;
font-size: 1px !important;
}
} wa-input {
::part(base) {
height: 1px !important;
font-size: 1px !important;
}
} I can see in the browser console that the element with but for the life of me I cannot get the input to change height. |
Beta Was this translation helpful? Give feedback.
Answered by
claviska
Dec 4, 2024
Replies: 1 comment 1 reply
-
For more granular changes, you need to hook into CSS Parts. wa-input::part(base) {
font-size: 10px;
height: 16px;
}
wa-input::part(input) {
height: inherit;
} CSS parts are listed in the docs for each component. We're working on improving how to describe component anatomy and parts to make this more clear :) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
goosedeersolutions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For more granular changes, you need to hook into CSS Parts.
CSS parts are listed in the docs for each component. We're working on improving how to describe component anatomy and parts to make this more clear :)