Repository navigation
Commit f712750
authored
feat(note): sync the ionic theme with the design kit (#31742)
Issue number: internal
---------
## What is the current behavior?
The ionic note inherits its line height and letter spacing.
## What is the new behavior?
The ionic note matches the info text of a list item in the ionic theme's
design kit (`body/md/regular`):
- `1.5rem` (24px) line height
- `0` letter spacing
The 14px font size and regular weight already match.
## Does this introduce a breaking change?
- [ ] Yes
- [x] No
The ionic theme hasn't been released.
## Other information
### Known gaps
- The kit's info text color (`#6c727a`) isn't in the palette, so the
note keeps its current color. Tracked as a follow-up with the palette
generator
- Centering the note in the ionic item divider is tracked as a follow-up
to sync the item divider
### How to test
| Check | Before | After | What to look for |
|---|---|---|---|
| ionic |
[Before](https://ionic-framework-git-fw-6855-md-sync-ionic1.vercel.app/src/components/note/test/basic/index.html?ionic:theme=ionic&ionic:mode=md)
|
[After](https://ionic-framework-git-fw-6855-ionic-sync-ionic1.vercel.app/src/components/note/test/basic/index.html?ionic:theme=ionic&ionic:mode=md)
| Nothing moves. Inspect a note: `line-height` is 24px and
`letter-spacing` is 0 |
| ionic, large text | Same links | | In devtools, add `font-size: 310%`
to `html`. Rows with a note are slightly taller after, because the
note's line height scales with the text |
Only the ionic font scaling snapshot changes. At 100% the note fits
within the item's minimum height, so nothing else moves.1 parent e432076 commit f712750
4 files changed
Lines changed: 6 additions & 0 deletions
File tree
- core/src
- components/note/test/a11y/note.e2e.ts-snapshots
- themes/ionic
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
871 | 877 | | |
872 | 878 | | |
873 | 879 | | |
| |||
0 commit comments