File tree Expand file tree Collapse file tree 4 files changed +15
-2
lines changed
Expand file tree Collapse file tree 4 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
2424 - take Markdown rendering into account before testing the maximum preview length
2525- ` <NodeContent /> `
2626 - header-menu items are vertically centered now
27+ - ` Typography `
28+ - adjust displaying fallback symbols in different browsers
2729
2830### Changed
2931
Original file line number Diff line number Diff line change 11import React from "react" ;
22import { Meta , StoryFn } from "@storybook/react" ;
33
4- import { Tabs , TabTitle as TabTitleOrg } from "./../../../" ;
4+ import { Tabs , TabTitle as TabTitleOrg , TabTitleProps } from "./../../../" ;
55
66export default {
77 title : "Components/Tabs/TabTitle" ,
88 component : TabTitleOrg ,
99 argTypes : { } ,
1010} as Meta < typeof TabTitleOrg > ;
1111
12- const TabTitle = ( args ) => {
12+ const TabTitle = ( args : React . JSX . IntrinsicAttributes & TabTitleProps ) => {
1313 return (
1414 < Tabs
1515 id = "titledemo"
@@ -31,3 +31,8 @@ TabTitleElement.args = {
3131 titlePrefix : "[" ,
3232 titleSuffix : < span > ]</ span > ,
3333} ;
34+
35+ export const TabTitleSymbolElement = TemplateFull . bind ( { } ) ;
36+ TabTitleSymbolElement . args = {
37+ text : "★" ,
38+ } ;
Original file line number Diff line number Diff line change 77input ,
88textarea {
99 font-family : inherit ;
10+ font-size-adjust : inherit ;
1011 border-radius : 0 ;
1112}
1213
Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ body {
1717 text-rendering : optimizelegibility ;
1818 -webkit-font-smoothing : antialiased ;
1919 -moz-osx-font-smoothing : grayscale ;
20+ // User-facing text may contain Unicode symbols (e.g. "★") that fall outside the primary font stack.
21+ // Browsers pick different system fallback fonts for such characters, causing glyphs to render at
22+ // different optical sizes (smaller in Firefox). font-size-adjust normalises the fallback font size
23+ // by matching the primary font's x-height, reducing the visual size discrepancy across browsers.
24+ font-size-adjust : from- font;
2025}
2126
2227code {
You can’t perform that action at this time.
0 commit comments