File tree Expand file tree Collapse file tree 4 files changed +14
-13
lines changed
patternfly-docs/content/examples
sass/react-catalog-view-extension Expand file tree Collapse file tree 4 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 1717 margin-inline-start : var (--pf-t--global--spacer--md );
1818}
1919.ws-react-e-catalog-item-header .catalog-item-header-pf-title {
20- font-weight : var (--pf-t--global--font--weight--body );
2120 margin-block-end : 0 ;
2221 margin-block-start : 0 ;
2322}
Original file line number Diff line number Diff line change 1313 margin-left : 20px ;
1414}
1515
16- .catalog-item-header-pf-title {
17- font-weight : 400 ;
18- margin-bottom : 0 ;
19- margin-top : 0 ;
20- }
21-
2216.catalog-item-header-pf-subtitle {
2317 color : var (--pf-t--global--text--color--subtle );
2418 margin-bottom : 0 ;
Original file line number Diff line number Diff line change 11import * as React from 'react' ;
2+ import { Content , Title } from '@patternfly/react-core' ;
23import { css } from '@patternfly/react-styles' ;
34
45export interface CatalogItemHeaderProps extends Omit < React . HTMLProps < HTMLElement > , 'title' > {
@@ -26,8 +27,8 @@ export const CatalogItemHeader: React.FunctionComponent<CatalogItemHeaderProps>
2627 { iconImg && < img className = "catalog-item-header-pf-icon" src = { iconImg } alt = "" /> }
2728 { ! iconImg && iconClass && < span className = { `catalog-item-header-pf-icon ${ iconClass } ` } /> }
2829 < div className = "catalog-item-header-pf-text" >
29- < h1 className = "catalog-item-header-pf-title" > { title } </ h1 >
30- { vendor && < h5 className = "catalog-item-header-pf-subtitle" > { vendor } </ h5 > }
30+ < Title headingLevel = "h1" className = "catalog-item-header-pf-title" > { title } </ Title >
31+ { vendor && < Content component = "p" className = "catalog-item-header-pf-subtitle" > { vendor } </ Content > }
3132 </ div >
3233 </ header >
3334) ;
Original file line number Diff line number Diff line change @@ -9,12 +9,19 @@ exports[`simple catalog item header 1`] = `
99 class = " catalog-item-header-pf-text"
1010 >
1111 <h1
12- class = " catalog-item-header-pf-title"
12+ class = " pf-v6-c-title pf-m-h1 catalog-item-header-pf-title"
13+ data-ouia-component-id = " OUIA-Generated-Title-1"
14+ data-ouia-component-type = " PF6/Title"
15+ data-ouia-safe = " true"
1316 >
1417 PatternFly
1518 </h1 >
16- <h5
17- class = " catalog-item-header-pf-subtitle"
19+ <p
20+ class = " pf-v6-c-content--p catalog-item-header-pf-subtitle"
21+ data-ouia-component-id = " OUIA-Generated-Content-1"
22+ data-ouia-component-type = " PF6/Content"
23+ data-ouia-safe = " true"
24+ data-pf-content = " true"
1825 >
1926 <span >
2027 provided by
@@ -24,7 +31,7 @@ exports[`simple catalog item header 1`] = `
2431 Red Hat
2532 </a >
2633 </span >
27- </h5 >
34+ </p >
2835 </div >
2936 </header >
3037</DocumentFragment >
You can’t perform that action at this time.
0 commit comments