File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ import {
1919import {
2020 ActionList ,
2121 Badge ,
22- // eslint-disable-next-line import/no-deprecated
23- Caption ,
2422 Card ,
2523 ContextualSaveBar ,
2624 DropZone ,
@@ -37,13 +35,12 @@ import {
3735 SkeletonDisplayText ,
3836 SkeletonPage ,
3937 Stack ,
38+ Text ,
4039 TextContainer ,
4140 TextField ,
4241 Thumbnail ,
4342 Toast ,
4443 TopBar ,
45- // eslint-disable-next-line import/no-deprecated
46- VisuallyHidden ,
4744} from '../src' ;
4845
4946import styles from './DetailsPage.scss' ;
@@ -453,7 +450,7 @@ export function DetailsPage() {
453450 const loadingMarkup = isLoading ? < Loading /> : null ;
454451
455452 const skipToContentTarget = (
456- < VisuallyHidden >
453+ < Text as = "span" variant = "bodySm" visuallyHidden >
457454 < a
458455 href = "#SkipToContent"
459456 id = "SkipToContentTarget"
@@ -462,7 +459,7 @@ export function DetailsPage() {
462459 >
463460 Page content
464461 </ a >
465- </ VisuallyHidden >
462+ </ Text >
466463 ) ;
467464
468465 const [ title , setTitle ] = useState (
@@ -536,7 +533,10 @@ export function DetailsPage() {
536533 }
537534 />
538535 < div >
539- { file . name } < Caption > { file . size } bytes</ Caption >
536+ { file . name } { ' ' }
537+ < Text as = "p" variant = "bodySm" >
538+ { file . size } bytes
539+ </ Text >
540540 </ div >
541541 </ Stack >
542542 ) ) }
You can’t perform that action at this time.
0 commit comments