File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
packages/lib/src/quick-nav Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,19 @@ const Link = styled.a`
3737 font-size: var(--typography-label-m);
3838 font-weight: var(--typography-label-regular);
3939 color: var(--color-fg-neutral-stronger);
40- display: block ;
41- text-overflow: ellipsis ;
40+ display: flex ;
41+ align-items: center ;
4242 white-space: nowrap;
4343 overflow: hidden;
44- line- height: var(--height-s);
44+ height: var(--height-s);
4545 width: fit-content;
4646 max-width: 100%;
4747
48+ > span {
49+ text-overflow: ellipsis;
50+ white-space: nowrap;
51+ overflow: hidden;
52+ }
4853 &:hover {
4954 color: var(--color-fg-primary-strong);
5055 }
@@ -63,7 +68,9 @@ const DxcQuickNav = ({ title, links }: QuickNavTypes): JSX.Element => {
6368 < ListColumn >
6469 { links . map ( ( link ) => (
6570 < li key = { link . label } >
66- < Link href = { `#${ slugify ( link . label , { lower : true } ) } ` } > { link . label } </ Link >
71+ < Link href = { `#${ slugify ( link . label , { lower : true } ) } ` } >
72+ < span > { link . label } </ span >
73+ </ Link >
6774 { link . links ?. length && (
6875 < ListSecondColumn >
6976 { link . links ?. map ( ( sublink ) => (
@@ -73,7 +80,7 @@ const DxcQuickNav = ({ title, links }: QuickNavTypes): JSX.Element => {
7380 lower : true ,
7481 } ) } `}
7582 >
76- { sublink . label }
83+ < span > { sublink . label } </ span >
7784 </ Link >
7885 </ li >
7986 ) ) }
You can’t perform that action at this time.
0 commit comments