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 { Text } from '@wordpress/ui' ;
7- import { __experimentalHStack as HStack } from '@wordpress/components' ;
6+ import {
7+ __experimentalHeading as Heading ,
8+ __experimentalHStack as HStack ,
9+ } from '@wordpress/components' ;
810
911/**
1012 * Internal dependencies
@@ -22,23 +24,16 @@ const BreadcrumbItem = ( {
2224 if ( ! to ) {
2325 return (
2426 < li >
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- >
27+ < Heading level = { 1 } truncate >
3128 { label }
32- </ Text >
29+ </ Heading >
3330 </ li >
3431 ) ;
3532 }
3633
3734 return (
3835 < li >
39- < Link to = { to } >
40- < Text variant = "heading-lg" > { label } </ Text >
41- </ Link >
36+ < Link to = { to } > { label } </ Link >
4237 </ li >
4338 ) ;
4439} ;
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 );
913 min-height : 32px ;
1014
1115 li :not (:last-child )::after {
Original file line number Diff line number Diff line change 11/**
22 * WordPress dependencies
33 */
4- import { Stack , Text } from '@wordpress/ui' ;
4+ import { Stack } from '@wordpress/ui' ;
55
66/**
77 * Internal dependencies
@@ -38,14 +38,9 @@ export default function Header( {
3838 />
3939 ) }
4040 { 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- >
41+ < h2 className = "admin-ui-page__header-title" >
4742 { title }
48- </ Text >
43+ </ h2 >
4944 ) }
5045 { breadcrumbs }
5146 { 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 );
2226 margin : 0 ;
2327 overflow : hidden ;
28+ text-overflow : ellipsis ;
29+ white-space : nowrap ;
2430}
2531
2632.admin-ui-page__sidebar-toggle-slot :empty {
You can’t perform that action at this time.
0 commit comments