Skip to content

Text recipe - #11

Merged
microbit-matt-hillsdon merged 2 commits into
mainfrom
text-recipe
Jul 31, 2026
Merged

Text recipe#11
microbit-matt-hillsdon merged 2 commits into
mainfrom
text-recipe

Conversation

@microbit-matt-hillsdon

Copy link
Copy Markdown
Contributor

No description provided.

Chakra's Text could be given sizes and a default via an app theme's
components.Text — python-editor's set a default of md, which the bare
styled("p") port lost (unsized <Text> regressed to the inherited 16px
there). A config recipe so an app preset can extend defaultVariants to
restore that. No default size here: with no size prop Text inherits,
matching Chakra's defaultless Text, which the other apps rely on (e.g.
ml-trainer's unsized Text inside Tooltip labels inheriting the
tooltip's sm).
Same treatment as the earlier story split: each component gets its own
file with component metadata for per-component controls and a
Playground, plus Sizes/examples carried over from the catalog. Text
gains a Sizes story covering the recipe's sm/md/lg variants alongside
the default inheriting behaviour.
@microbit-matt-hillsdon
microbit-matt-hillsdon merged commit f2b1706 into main Jul 31, 2026
1 check passed
@microbit-matt-hillsdon
microbit-matt-hillsdon deleted the text-recipe branch July 31, 2026 08:26
microbit-matt-hillsdon added a commit that referenced this pull request Aug 3, 2026
The gotcha told apps to swap Panda's AspectRatio pattern for the native
property. Native aspect-ratio needs Safari 15 / iOS 15 / Firefox 89, and the
family floor is 14.1 / 14.5 / 88, so on three of five targets the declaration
is dropped and the box collapses to content height — no fallback, and nothing
for lightningcss to downlevel.

Panda's pattern is the same padding-bottom hack as Chakra's and works
everywhere; classroom measured the two identical. The child-override conflict
the gotcha is actually about only arises when the child is a Chakra component
with its own position, so porting the child first makes the pattern safe.

Flags the sites in ml-trainer and python-editor that took the old advice.
microbit-matt-hillsdon added a commit that referenced this pull request Aug 3, 2026
…a note

Gotcha #11 mentions the affected sites, but a corrected gotcha isn't where
anyone looks for outstanding work on a migration that's already signed off.
Adds an 'open across the completed migrations' section to the roadmap with the
specific files in ml-trainer and python-editor, and is explicit that nobody has
yet confirmed them visibly broken on a real Safari 14 — that check comes before
any change.
microbit-matt-hillsdon added a commit that referenced this pull request Aug 3, 2026
The gotcha told apps to swap Panda's AspectRatio pattern for the native
property. Native aspect-ratio needs Safari 15 / iOS 15 / Firefox 89, and the
family floor is 14.1 / 14.5 / 88, so on three of five targets the declaration
is dropped and the box collapses to content height — no fallback, and nothing
for lightningcss to downlevel.

Panda's pattern is the same padding-bottom hack as Chakra's and works
everywhere; classroom measured the two identical. The child-override conflict
the gotcha is actually about only arises when the child is a Chakra component
with its own position, so porting the child first makes the pattern safe.

Flags the sites in ml-trainer and python-editor that took the old advice.
microbit-matt-hillsdon added a commit that referenced this pull request Aug 3, 2026
…a note

Gotcha #11 mentions the affected sites, but a corrected gotcha isn't where
anyone looks for outstanding work on a migration that's already signed off.
Adds an 'open across the completed migrations' section to the roadmap with the
specific files in ml-trainer and python-editor, and is explicit that nobody has
yet confirmed them visibly broken on a real Safari 14 — that check comes before
any change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant