Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Surface a11y fix #1500

Merged
merged 11 commits into from
Aug 18, 2023
2 changes: 1 addition & 1 deletion examples/Surface.headerfooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default () => {
<Text variant='subheading' as='h2'>
Custom surface
</Text>
<IconButton styleType='borderless'>
<IconButton label='Settings' styleType='borderless'>
<SvgSettings />
</IconButton>
</Flex>
Expand Down
37 changes: 21 additions & 16 deletions examples/Surface.nopadding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,44 +16,49 @@ export default () => {
return (
<Surface elevation={3} style={cardStyle}>
<Surface.Header>
<Text variant='subheading' as='h2'>
<Text id='surface-header' variant='subheading' as='h2'>
Surface with overflow & no body padding
</Text>
</Surface.Header>
<Surface.Body isPadded={false}>
<Surface.Body
tabIndex={0}
role='group'
aria-labelledby='surface-header'
isPadded={false}
>
<Flex flexDirection='column' style={{ flex: '1' }}>
<ul
<div
style={{
width: '100%',
listStyle: 'none',
margin: 0,
padding: 0,
}}
>
<li style={listStyle}>
<div style={listStyle}>
<Anchor>Daily log</Anchor>
</li>
</div>
<Divider />
<li style={listStyle}>
<div style={listStyle}>
<Anchor>Inspections</Anchor>
</li>
</div>
<Divider />
<li style={listStyle}>
<div style={listStyle}>
<Anchor>Issues</Anchor>
</li>
</div>
<Divider />
<li style={listStyle}>
<div style={listStyle}>
<Anchor>Observations</Anchor>
</li>
</div>
<Divider />
<li style={listStyle}>
<div style={listStyle}>
<Anchor>RFIs</Anchor>
</li>
</div>
<Divider />
<li style={listStyle}>
<div style={listStyle}>
<Anchor>Weather delay notices</Anchor>
</li>
</ul>
</div>
</div>
</Flex>
</Surface.Body>
</Surface>
Expand Down