File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import {
2020 ActionList ,
2121 Badge ,
2222 // eslint-disable-next-line import/no-deprecated
23- Caption ,
2423 Card ,
2524 ContextualSaveBar ,
2625 DropZone ,
@@ -37,13 +36,13 @@ import {
3736 SkeletonDisplayText ,
3837 SkeletonPage ,
3938 Stack ,
39+ Text ,
4040 TextContainer ,
4141 TextField ,
4242 Thumbnail ,
4343 Toast ,
4444 TopBar ,
4545 // eslint-disable-next-line import/no-deprecated
46- VisuallyHidden ,
4746} from '../src' ;
4847
4948import styles from './DetailsPage.scss' ;
@@ -453,7 +452,7 @@ export function DetailsPage() {
453452 const loadingMarkup = isLoading ? < Loading /> : null ;
454453
455454 const skipToContentTarget = (
456- < VisuallyHidden >
455+ < Text as = "span" variant = "bodySm" visuallyHidden >
457456 < a
458457 href = "#SkipToContent"
459458 id = "SkipToContentTarget"
@@ -462,7 +461,7 @@ export function DetailsPage() {
462461 >
463462 Page content
464463 </ a >
465- </ VisuallyHidden >
464+ </ Text >
466465 ) ;
467466
468467 const [ title , setTitle ] = useState (
@@ -536,7 +535,10 @@ export function DetailsPage() {
536535 }
537536 />
538537 < div >
539- { file . name } < Caption > { file . size } bytes</ Caption >
538+ { file . name } { ' ' }
539+ < Text as = "p" variant = "bodySm" >
540+ { file . size } bytes
541+ </ Text >
540542 </ div >
541543 </ Stack >
542544 ) ) }
You can’t perform that action at this time.
0 commit comments