Skip to content

Commit

Permalink
fix(checkbox): rm glamor references
Browse files Browse the repository at this point in the history
  • Loading branch information
jaketrent committed Aug 11, 2021
1 parent cdaf619 commit 9172041
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

exports[`Storyshots Components/Checkbox Basic 1`] = `
<div
data-css-yto836=""
style={
Object {
"padding": "24px",
}
}
>
<label
className="psds-checkbox"
Expand Down Expand Up @@ -34,7 +38,11 @@ exports[`Storyshots Components/Checkbox Basic 1`] = `

exports[`Storyshots Components/Checkbox Checked 1`] = `
<div
data-css-yto836=""
style={
Object {
"padding": "24px",
}
}
>
<label
className="psds-checkbox"
Expand Down Expand Up @@ -80,7 +88,11 @@ exports[`Storyshots Components/Checkbox Checked 1`] = `

exports[`Storyshots Components/Checkbox Checked Error 1`] = `
<div
data-css-yto836=""
style={
Object {
"padding": "24px",
}
}
>
<label
className="psds-checkbox"
Expand Down Expand Up @@ -126,7 +138,11 @@ exports[`Storyshots Components/Checkbox Checked Error 1`] = `

exports[`Storyshots Components/Checkbox Checked Indeterminate 1`] = `
<div
data-css-yto836=""
style={
Object {
"padding": "24px",
}
}
>
<label
className="psds-checkbox"
Expand Down Expand Up @@ -175,7 +191,11 @@ exports[`Storyshots Components/Checkbox Checked Indeterminate 1`] = `

exports[`Storyshots Components/Checkbox Disabled 1`] = `
<div
data-css-yto836=""
style={
Object {
"padding": "24px",
}
}
>
<label
className="psds-checkbox psds-checkbox--disabled"
Expand Down Expand Up @@ -208,7 +228,11 @@ exports[`Storyshots Components/Checkbox Disabled 1`] = `

exports[`Storyshots Components/Checkbox Error 1`] = `
<div
data-css-yto836=""
style={
Object {
"padding": "24px",
}
}
>
<label
className="psds-checkbox"
Expand Down Expand Up @@ -240,11 +264,19 @@ exports[`Storyshots Components/Checkbox Error 1`] = `

exports[`Storyshots Components/Checkbox Example State Demo 1`] = `
<div
data-css-yto836=""
style={
Object {
"padding": "24px",
}
}
>
<div>
<div
data-css-1ez0qa4=""
style={
Object {
"color": "rgba(255, 255, 255, 0.95)",
}
}
>
Checked:
Expand Down Expand Up @@ -333,7 +365,11 @@ exports[`Storyshots Components/Checkbox Example State Demo 1`] = `

exports[`Storyshots Components/Checkbox Indeterminate 1`] = `
<div
data-css-yto836=""
style={
Object {
"padding": "24px",
}
}
>
<label
className="psds-checkbox"
Expand Down
5 changes: 2 additions & 3 deletions packages/checkbox/src/react/__stories__/index.story.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { colorsTextIcon, layout } from '@pluralsight/ps-design-system-core'
import { Meta, Story } from '@storybook/react/types-6-0'
import { DecoratorFn } from '@storybook/react'
import { css } from 'glamor'
import React from 'react'

import Checkbox from '../index'

const PaddingDecorator: DecoratorFn = storyFn => (
<div {...css({ padding: layout.spacingLarge })}>{storyFn()}</div>
<div style={{ padding: layout.spacingLarge }}>{storyFn()}</div>
)

const defaultArgs = {
Expand Down Expand Up @@ -77,7 +76,7 @@ export const ExampleStateDemo: Story = () => {

return (
<div>
<div {...css({ color: colorsTextIcon.highOnDark })}>
<div style={{ color: colorsTextIcon.highOnDark }}>
Checked: {colorNames.map(name => `${name}: ${values[name]}`).join('; ')}
</div>

Expand Down

0 comments on commit 9172041

Please sign in to comment.