File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
packages/pluggableWidgets/skiplink-web/src Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ export const preview = (props: SkipLinkPreviewProps): ReactElement => {
55 if ( props . renderMode === "xray" ) {
66 return (
77 < div style = { { position : "relative" , height : 40 } } >
8- < a href = { `#${ props . mainContentId } ` } style = { props . styleObject } >
8+ < a href = { `#${ props . mainContentId } ` } className = { "widget-skip-link-preview" } style = { props . styleObject } >
99 { props . linkText }
1010 </ a >
1111 </ div >
1212 ) ;
1313 } else {
1414 return (
15- < a href = { `#${ props . mainContentId } ` } style = { props . styleObject } >
15+ < a href = { `#${ props . mainContentId } ` } className = { "widget-skip-link-preview" } style = { props . styleObject } >
1616 { props . linkText }
1717 </ a >
1818 ) ;
Original file line number Diff line number Diff line change 1414 font-weight : bold ;
1515}
1616
17+ .widget-skip-link-preview {
18+ position : absolute ;
19+ top : 0 ;
20+ left : 0 ;
21+ background : #fff ;
22+ color : #0078d4 ;
23+ padding : 8px 16px ;
24+ z-index : 1000 ;
25+ text-decoration : none ;
26+ border : 2px solid #0078d4 ;
27+ border-radius : 4px ;
28+ font-weight : bold ;
29+ }
30+
1731.widget-skip-link :focus {
1832 transform : translateY (0 );
1933 outline : none ;
You can’t perform that action at this time.
0 commit comments