forge
forge copied to clipboard
fix(field): reduce font size when dense/extra-small
PR Checklist
Please check if your PR fulfills the following requirements:
- Tests for the changes have been added/updated: N
- Docs have been added/updated: N
- Does this PR introduce a breaking change? N
- I have linked any related GitHub issues to be closed when this PR is merged? N
Describe the new behavior?
The <forge-field>
will now set a reduced font-size
when in the dense/extra-small density. This density will now use 14px
or 0.875rem
for the "input" slotted content as well as any ::placeholder
pseudo elements.
There was also some other style and selector adjustments to fix an issue with dense textareas not hiding the label automatically due to a specificity issue.
Additional information
Included a small unrelated change to the demo page to update the filter field to use the show clear button.