File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 */
44import { Link } from '@wordpress/route' ;
55import { __ } from '@wordpress/i18n' ;
6- import {
7- __experimentalHeading as Heading ,
8- __experimentalHStack as HStack ,
9- } from '@wordpress/components' ;
6+ import { Text } from '@wordpress/ui' ;
7+ import { __experimentalHStack as HStack } from '@wordpress/components' ;
108
119/**
1210 * Internal dependencies
@@ -24,16 +22,23 @@ const BreadcrumbItem = ( {
2422 if ( ! to ) {
2523 return (
2624 < li >
27- < Heading level = { 1 } truncate >
25+ < Text
26+ className = "admin-ui-page__header-title"
27+ // eslint-disable-next-line jsx-a11y/heading-has-content -- content provided via render prop
28+ render = { < h1 /> }
29+ variant = "heading-lg"
30+ >
2831 { label }
29- </ Heading >
32+ </ Text >
3033 </ li >
3134 ) ;
3235 }
3336
3437 return (
3538 < li >
36- < Link to = { to } > { label } </ Link >
39+ < Link to = { to } >
40+ < Text variant = "heading-lg" > { label } </ Text >
41+ </ Link >
3742 </ li >
3843 ) ;
3944} ;
Original file line number Diff line number Diff line change 66 margin : 0 ;
77 // gap prop don't seem to be working properly.
88 gap : 0 ;
9- font-family : var (--wpds-font-family-heading );
10- font-size : var (--wpds-font-size-lg );
11- font-weight : var (--wpds-font-weight-medium );
12- line-height : var (--wpds-font-line-height-lg );
139 min-height : 32px ;
1410
1511 li :not (:last-child )::after {
Original file line number Diff line number Diff line change 11/**
22 * WordPress dependencies
33 */
4- import { Stack } from '@wordpress/ui' ;
4+ import { Stack , Text } from '@wordpress/ui' ;
55
66/**
77 * Internal dependencies
@@ -38,9 +38,14 @@ export default function Header( {
3838 />
3939 ) }
4040 { title && (
41- < h2 className = "admin-ui-page__header-title" >
41+ < Text
42+ className = "admin-ui-page__header-title"
43+ // eslint-disable-next-line jsx-a11y/heading-has-content -- content provided via render prop
44+ render = { < h2 /> }
45+ variant = "heading-lg"
46+ >
4247 { title }
43- </ h2 >
48+ </ Text >
4449 ) }
4550 { breadcrumbs }
4651 { badges }
Original file line number Diff line number Diff line change 1919}
2020
2121.admin-ui-page__header-title {
22- font-family : var (--wpds-font-family-heading );
23- font-size : var (--wpds-font-size-lg );
24- font-weight : var (--wpds-font-weight-medium );
25- line-height : var (--wpds-font-line-height-lg );
2622 margin : 0 ;
2723 overflow : hidden ;
28- text-overflow : ellipsis ;
29- white-space : nowrap ;
3024}
3125
3226.admin-ui-page__sidebar-toggle-slot :empty {
You can’t perform that action at this time.
0 commit comments