-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(styles): add pointer-events help classes
- Loading branch information
Showing
5 changed files
with
86 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@baloise/ds-core': minor | ||
--- | ||
|
||
**styles**: add pointer-events css help classes |
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
53 changes: 53 additions & 0 deletions
53
docs/stories/utilities/interactions/pointer-events.stories.mdx
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { Meta, Source, Canvas } from '@storybook/addon-docs' | ||
import { | ||
Banner, | ||
Lead, | ||
Code, | ||
CssInteractionsPointerEvents, | ||
Footer, | ||
LinkCard, | ||
LinkCards, | ||
} from '../../../.storybook/blocks' | ||
|
||
<Meta | ||
title="CSS Utilities/Interactions/Pointer Events" | ||
parameters={{ | ||
previewTabs: { | ||
canvas: { hidden: true }, | ||
}, | ||
}} | ||
/> | ||
|
||
<Banner label="Pointer Events" section="CSS Utilities" color="yellow" puzzle /> | ||
|
||
<Lead> | ||
The pointer-events CSS property determines the conditions under which a specific graphic element can receive pointer | ||
events, if at all. | ||
</Lead> | ||
|
||
## Classes | ||
|
||
<CssInteractionsPointerEvents /> | ||
|
||
<Code | ||
language="html" | ||
code={` | ||
<div class="flex flex-wrap align-items-center justify-content-center"> | ||
<button class="button m-small pointer-events-auto">Auto</button> | ||
<button class="button m-small pointer-events-none">None</button> | ||
</div> | ||
`} | ||
/> | ||
|
||
<Footer> | ||
<LinkCards> | ||
<LinkCard | ||
pageTitle="Foundation/Elevation" | ||
description="Elevation involves the strategic application of shadow and depth to elements, enhancing visual hierarchy and providing depth cues within the user interface" | ||
/> | ||
<LinkCard | ||
pageTitle="Tokens/Overview" | ||
description="Design tokens serve as the definitive source for naming and storing design choices." | ||
/> | ||
</LinkCards> | ||
</Footer> |
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