File tree Expand file tree Collapse file tree 1 file changed +7
-18
lines changed Expand file tree Collapse file tree 1 file changed +7
-18
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,7 @@ export const Crumb: FC<CrumbProps> = ({
1818 ...props
1919} ) => {
2020 const text = children ;
21- const cClassName = classnames (
22- 'slds-list__item slds-text-heading_label' ,
23- className
24- ) ;
21+ const cClassName = classnames ( 'slds-breadcrumb__item' , className ) ;
2522
2623 return (
2724 < li { ...props } className = { cClassName } >
@@ -33,34 +30,26 @@ export const Crumb: FC<CrumbProps> = ({
3330/**
3431 *
3532 */
36- export type BreadCrumbsProps = {
37- label ?: string ;
38- } & HTMLAttributes < HTMLElement > ;
33+ export type BreadCrumbsProps = HTMLAttributes < HTMLElement > ;
3934
4035/**
4136 *
4237 */
4338export const BreadCrumbs : FC < BreadCrumbsProps > = ( {
44- label,
4539 className,
4640 children,
4741 ...props
4842} ) => {
4943 const oClassName = classnames (
50- 'slds-breadcrumb slds-list_horizontal' ,
44+ 'slds-breadcrumb' ,
45+ 'slds-list_horizontal' ,
46+ 'slds-wrap' ,
5147 className
5248 ) ;
5349
5450 return (
55- < nav { ...props } role = 'navigation' >
56- { label ? (
57- < p id = 'bread-crumb-label' className = 'slds-assistive-text' >
58- { label }
59- </ p >
60- ) : null }
61- < ol className = { oClassName } aria-labelledby = 'bread-crumb-label' >
62- { children }
63- </ ol >
51+ < nav { ...props } role = 'navigation' aria-label = 'Breadcrumbs' >
52+ < ol className = { oClassName } > { children } </ ol >
6453 </ nav >
6554 ) ;
6655} ;
You can’t perform that action at this time.
0 commit comments