Skip to content

Commit 95c53a5

Browse files
committed
Fix <small> font-size not applied (picocss/pico#561).
1 parent f6a807b commit 95c53a5

4 files changed

Lines changed: 9 additions & 0 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ These µCSS rules exist to fix PicoCSS default behaviors:
6060
- `[data-tooltip] { display: inline-block }` — Fix tooltip mispositioned on inline elements in Chromium (picocss/pico#678) — remove when fixed upstream
6161
- `[data-tooltip]::before/::after` use `--mu-inverted-background`/`--mu-inverted-color` instead of themed contrast — PicoCSS contrast is theme-dependent in µCSS, not always readable as tooltip background
6262
- `[data-tooltip]::before { white-space: pre-line; width: max-content; max-width: 20rem }` — Fix tooltip overflow on long text, support explicit line breaks, comfortable width (picocss/pico#665, picocss/pico#715) — remove when fixed upstream
63+
- `small { font-size: var(--mu-font-size) }` — Fix `<small>` font-size not applied (picocss/pico#561) — remove when fixed upstream
6364
- `code, kbd, samp { padding: 0.125rem 0.375rem }` — Fix inline code vertical padding too thick (picocss/pico#651) — remove when fixed upstream
6465
- PicoCSS sets `:where(table) { width: 100% }` — all tables are fullwidth by default, no `.table-fullwidth` class needed
6566
- PicoCSS `.outline` button style (3 colors) coexists with µCSS `.btn-outline` (11 colors) — different selectors, no conflict

DECISIONS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Fixes integrated into µCSS. The "Temporary" column indicates workarounds that s
1010
|----------|---------|--------------|-----------|
1111
| #540, #700 | Helper text (`<small>`) not styled after input groups | mu.utilities.css | Yes |
1212
| #634, #664 | Safari 18.2+ truncates dropdown text in nav | mu.component.nav.css | Yes |
13+
| #561 | `<small>` font-size not applied (variable set but unused) | mu.utilities.css | Yes |
1314
| #651 | Inline code/kbd/samp vertical padding too thick | mu.utilities.css, mu.component.var.css | Yes |
1415
| #663 | Striped table: hidden rows break odd/even alternation | mu.component.table.css | Yes |
1516
| #665, #715 | Tooltip overflow on long text, multiline support | mu.utilities.css | Yes |

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ Each theme maps 11 semantic roles to PicoCSS color families:
207207
- [Bleksak](https://github.com/Bleksak)picocss/pico#715
208208
- [ManiShah7](https://github.com/ManiShah7)picocss/pico#694 (fix for picocss/pico#678)
209209
- [irfanfadilah](https://github.com/irfanfadilah)picocss/pico#651
210+
- [gustav-langer](https://github.com/gustav-langer)picocss/pico#561
210211

211212
## License
212213

css/mu.utilities.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ li ol {
4848
max-width: 20rem;
4949
}
5050

51+
/* PicoCSS bugfix: <small> font-size not applied (picocss/pico#561) — remove when fixed upstream */
52+
/* PicoCSS sets --pico-font-size: 0.875em on small but never applies it; browser uses "smaller" instead */
53+
small {
54+
font-size: var(--mu-font-size);
55+
}
56+
5157
/* PicoCSS bugfix: inline code vertical padding too thick (picocss/pico#651) — remove when fixed upstream */
5258
code, kbd, samp {
5359
padding: 0.125rem 0.375rem;

0 commit comments

Comments
 (0)