Skip to content
This repository was archived by the owner on May 7, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion f2/src/components/skip-link/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export const SkipLink = ({ invisible, ...rest }) => (
<A
mt={2}
p={2}
backgroundColor="black"
textDecoration=""
backgroundColor="blue.900"
color="white"
fontWeight="bold"
position="absolute"
Expand Down
22 changes: 22 additions & 0 deletions f2/src/components/skip-link/skip-link.stories.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Meta, Story, Props, Preview } from '@storybook/addon-docs/blocks'
import ThemeDecorator from '../../../.storybook/themeDecorator'
import { SkipLink } from './index'
import { Stack } from '@chakra-ui/core'

<Meta
title="Components/SkipLink"
component={SkipLink}
decorators={[ThemeDecorator]}
/>

# SkipLink

<Preview>
<Story height="50px" name="SkipLink">
<SkipLink>Hello there</SkipLink>
</Story>
</Preview>

## Props

<Props of={SkipLink} />
2 changes: 1 addition & 1 deletion f2/src/locales/en.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"SkipLink.text": "Skip to main content.",
"SkipLink.text": "Skip to main content",
"backButton.text": "Go back",
"banner.footerPrivacy": "Privacy",
"banner.footerTermsAndConditions": "Terms and conditions",
Expand Down
2 changes: 1 addition & 1 deletion f2/src/locales/fr.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"SkipLink.text": "Aller au contenu principal.",
"SkipLink.text": "Aller au contenu principal",
"backButton.text": "Retour",
"banner.footerPrivacy": "Confidentialité",
"banner.footerTermsAndConditions": "Avis",
Expand Down