File tree 4 files changed +34
-6
lines changed
4 files changed +34
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,13 @@ const BurgerButton = styled.button`
17
17
` ;
18
18
19
19
const Container = styled . div `
20
+ align-items: center;
20
21
color: ${ ( props ) => props . theme . greys . white } ;
22
+ display: flex;
23
+
24
+ > * + * {
25
+ margin-left: var(--spacing-1x);
26
+ }
21
27
` ;
22
28
23
29
interface Props {
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ const Header = styled.header<{ device: DeviceType }>`
24
24
display: flex;
25
25
height: ${ ( { device } ) => ( device === 'desktop' ? 48 : 56 ) } px;
26
26
justify-content: space-between;
27
- overflow: hidden;
28
27
padding: ${ ( { device } ) => getPadding ( device ) } ;
29
28
position: relative;
30
29
` ;
@@ -50,7 +49,7 @@ const StyledSkipLink = styled(SkipLink)<ComponentProps<typeof SkipLink> & { isMo
50
49
&:not(:focus) {
51
50
clip: unset;
52
51
height: auto;
53
- top: -50 %;
52
+ top: -100 %;
54
53
width: auto;
55
54
}
56
55
Original file line number Diff line number Diff line change 1
- import { ApplicationMenu } from '@equisoft/design-elements-react' ;
1
+ import { ApplicationMenu , UserProfile } from '@equisoft/design-elements-react' ;
2
2
import { Story } from '@storybook/react' ;
3
3
import React , { ReactElement , VoidFunctionComponent } from 'react' ;
4
4
import CustomLogoSvg from './assets/customLogo.svg' ;
@@ -54,3 +54,17 @@ export const WithSkipLink: Story = () => (
54
54
< p > Hello world</ p >
55
55
</ ApplicationMenu >
56
56
) ;
57
+
58
+ export const WithSkipLinkAndUserProfile : Story = ( ) => (
59
+ < ApplicationMenu skipLinkHref = "#" >
60
+ < p > Hello world</ p >
61
+ < UserProfile
62
+ username = ""
63
+ options = { [ {
64
+ value : 'Something' ,
65
+ href : '#' ,
66
+ } ,
67
+ ] }
68
+ />
69
+ </ ApplicationMenu >
70
+ ) ;
You can’t perform that action at this time.
0 commit comments