-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix icon styling across Share. Improve style setup in Cosmos. (#769)
* Fix style setup in AboutDialog.fixture * Set icon size at theme level using className of icon-share and a couple subtypes. Fix croping of Bldrs logo in About panel. Remove hardcoded fill from all SVG icons. Set fill set theme level. * Set icon size at theme level using className of icon-share and a couple subtypes. Fix croping of Bldrs logo in About panel. Remove hardcoded fill from all SVG icons. Set fill set theme level. * Reduce size of X icon to 15x15. * Introduce icon-small 15x15, use for CloseIcon. * Introduce FixtureContext, to include style setup in base context for all fixtures. Upgrade svgr plugins and uniform config between esbuild and cosmos/webpack for uniform icon rendering. Simplify some components. * Remove icon customization. * Add back in react names for anon components. Simplify NoContent. * Trigger rebuild. * Slightly slimmer Dialog to prevent horizontal scroll on mobile. --------- Signed-off-by: Pablo Mayrgundter <pablo.mayrgundter@gmail.com>
- Loading branch information
1 parent
b17a66e
commit ed226ff
Showing
62 changed files
with
1,367 additions
and
781 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
import React from 'react' | ||
import {HelmetProvider} from 'react-helmet-async' | ||
import {ThemeProvider} from '@mui/material/styles' | ||
import useShareTheme from '../../theme/Theme' | ||
import FixtureContext from '../../FixtureContext' | ||
import {AboutDialog} from './AboutControl' | ||
|
||
|
||
/** @return {React.Component} */ | ||
export default function Example() { | ||
export default function AboutDialogFixture() { | ||
return ( | ||
<HelmetProvider> | ||
<ThemeProvider theme={useShareTheme()}> | ||
<AboutDialog | ||
isDialogDisplayed={true} | ||
// eslint-disable-next-line no-empty-function | ||
setIsDialogDisplayed={() => {}} | ||
/> | ||
</ThemeProvider> | ||
</HelmetProvider> | ||
<FixtureContext> | ||
<AboutDialog | ||
isDialogDisplayed={true} | ||
// eslint-disable-next-line no-empty-function | ||
setIsDialogDisplayed={() => {}} | ||
/> | ||
</FixtureContext> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
import React from 'react' | ||
import FixtureContext from '../FixtureContext' | ||
import Dialog from './Dialog' | ||
import AttentionIcon from '../assets/icons/Attention.svg' | ||
|
||
|
||
export default ( | ||
<Dialog | ||
icon={<AttentionIcon/>} | ||
headerText={'Here\'s the thing!'} | ||
isDialogDisplayed={true} | ||
// eslint-disable-next-line no-empty-function | ||
setIsDialogDisplayed={() => {}} | ||
content={'What you should know about doing the thing'} | ||
actionTitle={'Do do the thing?'} | ||
actionCb={() => { | ||
alert('You did the thing') | ||
}} | ||
/> | ||
<FixtureContext> | ||
<Dialog | ||
icon={<AttentionIcon className='icon-share'/>} | ||
headerText={'Here\'s the thing!'} | ||
isDialogDisplayed={true} | ||
// eslint-disable-next-line no-empty-function | ||
setIsDialogDisplayed={() => {}} | ||
content={'What you should know about doing the thing'} | ||
actionTitle={'Do do the thing?'} | ||
actionCb={() => { | ||
alert('You did the thing') | ||
}} | ||
/> | ||
</FixtureContext> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
import React from 'react' | ||
import FixtureContext from '../FixtureContext' | ||
import Loader from './Loader' | ||
|
||
|
||
export default ( | ||
<Loader/> | ||
<FixtureContext> | ||
<Loader/> | ||
</FixtureContext> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.