Skip to content

Commit

Permalink
Fix transitions, use thumbs icon, update doc text
Browse files Browse the repository at this point in the history
  • Loading branch information
hzhu committed Oct 5, 2020
1 parent 3e019a0 commit a5e9f1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ const withThemeProvider = (Story, context) => {
return (
<ThemeProvider theme={{ ...DEFAULT_THEME, rtl }}>
<GlobalPreviewStyling />
<StyledExampleWrapper>
<Story />
</StyledExampleWrapper>
{/* Work-around to get Storybook to play well with CSS transitions that are associated to props.
See: https://github.com/storybookjs/storybook/issues/12255 */}
{/* eslint-disable-next-line new-cap */}
<StyledExampleWrapper>{Story()}</StyledExampleWrapper>
</ThemeProvider>
);
};
Expand Down
2 changes: 1 addition & 1 deletion packages/buttons/stories/8-ToggleButton.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Default.parameters = {
docs: {
description: {
component: `
The following example demonstrates a [toggle button and toggle icon button](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/button_role#Toggle_buttons).
The following example demonstrates a [toggle button](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/button_role#Toggle_buttons).
Either click or use the keyboard to toggle each button's pressed state.
`
}
Expand Down
2 changes: 1 addition & 1 deletion packages/buttons/stories/9-ToggleIcon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import React from 'react';
import { Story, Meta } from '@storybook/react';
import { ToggleIconButton } from '@zendeskgarden/react-buttons';
import { Col, Grid, Row } from '@zendeskgarden/react-grid';
import Icon from '@zendeskgarden/svg-icons/src/16/eye-stroke.svg';
import Icon from '@zendeskgarden/svg-icons/src/16/thumbs-up-stroke.svg';

export default {
title: 'Components/Buttons/ToggleIconButton',
Expand Down

0 comments on commit a5e9f1c

Please sign in to comment.