-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WNMGDS-676] Update help drawer toggle to be a button (#860)
* Update helpdrawer toggle to be transparent button, allow extra props * Update tests and snaps, move display block to CSS * update snapshot * update html example with button Co-authored-by: Scott Weber <[email protected]>
- Loading branch information
1 parent
c1e4e9b
commit 77e3ce3
Showing
5 changed files
with
67 additions
and
48 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
34 changes: 19 additions & 15 deletions
34
packages/design-system/src/components/HelpDrawer/HelpDrawerToggle.jsx
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
25 changes: 13 additions & 12 deletions
25
...ages/design-system/src/components/HelpDrawer/__snapshots__/HelpDrawerToggle.test.jsx.snap
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,16 +1,17 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`HelpDrawerToggle renders a snapshot 1`] = ` | ||
<span | ||
className="ds-u-display--inline" | ||
exports[`HelpDrawerToggle renders a button 1`] = ` | ||
<Button | ||
className="ds-c-help-drawer__toggle" | ||
component="button" | ||
helpDrawerOpen={false} | ||
inputRef={[Function]} | ||
onClick={[Function]} | ||
type="button" | ||
variation="transparent" | ||
> | ||
<a | ||
href="javascript:void(0);" | ||
onClick={[Function]} | ||
> | ||
<p> | ||
link content | ||
</p> | ||
</a> | ||
</span> | ||
<p> | ||
content | ||
</p> | ||
</Button> | ||
`; |
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