Skip to content

Commit

Permalink
feat: dqa comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kostasdano committed Dec 6, 2023
1 parent e5e8753 commit 2403bfc
Show file tree
Hide file tree
Showing 22 changed files with 25 additions and 122 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@
border-radius: 100%;
}

.emotion-4[data-selected='true']:hover,
.emotion-4[data-indeterminate='true']:hover {
background: none;
box-shadow: none;
}

.emotion-4[data-selected='true']>span:last-child,
.emotion-4[data-indeterminate='true']>span:last-child {
-webkit-transition: all 0.2s;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@
border-radius: 100%;
}

.emotion-4[data-selected='true']:hover,
.emotion-4[data-indeterminate='true']:hover {
background: none;
box-shadow: none;
}

.emotion-4[data-selected='true']>span:last-child,
.emotion-4[data-indeterminate='true']>span:last-child {
-webkit-transition: all 0.2s;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@
border-radius: 100%;
}

.emotion-4[data-selected='true']:hover,
.emotion-4[data-indeterminate='true']:hover {
background: none;
box-shadow: none;
}

.emotion-4[data-selected='true']>span:last-child,
.emotion-4[data-indeterminate='true']>span:last-child {
-webkit-transition: all 0.2s;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@
border-radius: 100%;
}

.emotion-4[data-selected='true']:hover,
.emotion-4[data-indeterminate='true']:hover {
background: none;
box-shadow: none;
}

.emotion-4[data-selected='true']>span:last-child,
.emotion-4[data-indeterminate='true']>span:last-child {
-webkit-transition: all 0.2s;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@
border-radius: 100%;
}

.emotion-4[data-selected='true']:hover,
.emotion-4[data-indeterminate='true']:hover {
background: none;
box-shadow: none;
}

.emotion-4[data-selected='true']>span:last-child,
.emotion-4[data-indeterminate='true']>span:last-child {
-webkit-transition: all 0.2s;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@
border-radius: 100%;
}

.emotion-1[data-selected='true']:hover,
.emotion-1[data-indeterminate='true']:hover {
background: none;
box-shadow: none;
}

.emotion-1[data-selected='true']>span:last-child,
.emotion-1[data-indeterminate='true']>span:last-child {
-webkit-transition: all 0.2s;
Expand Down Expand Up @@ -189,7 +183,7 @@
class="emotion-6"
data-testid="undefined_radio_label_helpText"
>
This is the helptext of the option
Short text that adds context
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@
border-radius: 100%;
}

.emotion-2[data-selected='true']:hover,
.emotion-2[data-indeterminate='true']:hover {
background: none;
box-shadow: none;
}

.emotion-2[data-selected='true']>span:last-child,
.emotion-2[data-indeterminate='true']>span:last-child {
-webkit-transition: all 0.2s;
Expand Down Expand Up @@ -224,7 +218,7 @@
class="emotion-6"
data-testid="undefined_radio_label_label"
>
Option
Right Label
</div>
</div>
</div>
Expand Down Expand Up @@ -288,7 +282,7 @@
class="emotion-6"
data-testid="undefined_radio_label_label"
>
Option
Left Label
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@
border-radius: 100%;
}

.emotion-2[data-selected='true']:hover,
.emotion-2[data-indeterminate='true']:hover {
background: none;
box-shadow: none;
}

.emotion-2[data-selected='true']>span:last-child,
.emotion-2[data-indeterminate='true']>span:last-child {
-webkit-transition: all 0.2s;
Expand Down Expand Up @@ -218,7 +212,7 @@
class="emotion-6"
data-testid="undefined_radio_label_label"
>
Normal Option
Normal Label
</div>
</div>
</div>
Expand Down Expand Up @@ -282,7 +276,7 @@
class="emotion-13"
data-testid="undefined_radio_label_label"
>
Large Option
Large Label
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@
border-radius: 100%;
}

.emotion-2[data-selected='true']:hover,
.emotion-2[data-indeterminate='true']:hover {
background: none;
box-shadow: none;
}

.emotion-2[data-selected='true']>span:last-child,
.emotion-2[data-indeterminate='true']>span:last-child {
-webkit-transition: all 0.2s;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@
border-radius: 100%;
}

.emotion-2[data-selected='true']:hover,
.emotion-2[data-indeterminate='true']:hover {
background: none;
box-shadow: none;
}

.emotion-2[data-selected='true']>span:last-child,
.emotion-2[data-indeterminate='true']>span:last-child {
-webkit-transition: all 0.2s;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@
border-radius: 100%;
}

.emotion-2[data-selected='true']:hover,
.emotion-2[data-indeterminate='true']:hover {
background: none;
box-shadow: none;
}

.emotion-2[data-selected='true']>span:last-child,
.emotion-2[data-indeterminate='true']>span:last-child {
-webkit-transition: all 0.2s;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@
border-radius: 100%;
}

.emotion-1[data-selected='true']:hover,
.emotion-1[data-indeterminate='true']:hover {
background: none;
box-shadow: none;
}

.emotion-1[data-selected='true']>span:last-child,
.emotion-1[data-indeterminate='true']>span:last-child {
-webkit-transition: all 0.2s;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
class="emotion-3"
data-testid="undefined_radio_undefined_label"
>
Option
Right Label
</div>
</div>
</label>
Expand Down Expand Up @@ -252,7 +252,7 @@
class="emotion-3"
data-testid="undefined_radio_undefined_label"
>
Option
Left Label
</div>
</div>
</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
class="emotion-3"
data-testid="undefined_radio_undefined_label"
>
Normal Option
Normal Label
</div>
</div>
</label>
Expand Down Expand Up @@ -194,7 +194,7 @@
class="emotion-7"
data-testid="undefined_radio_undefined_label"
>
Large Option
Large Label
</div>
</div>
</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
class="emotion-3"
data-testid="undefined_radio_undefined_helpText"
>
This is the helptext of the option
Short text that adds context
</div>
</div>
</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,12 +401,6 @@
border-radius: 100%;
}

.emotion-19[data-selected='true']:hover,
.emotion-19[data-indeterminate='true']:hover {
background: none;
box-shadow: none;
}

.emotion-19[data-selected='true']>span:last-child,
.emotion-19[data-indeterminate='true']>span:last-child {
-webkit-transition: all 0.2s;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,12 +339,6 @@
border-radius: 100%;
}

.emotion-37[data-selected='true']:hover,
.emotion-37[data-indeterminate='true']:hover {
background: none;
box-shadow: none;
}

.emotion-37[data-selected='true']>span:last-child,
.emotion-37[data-indeterminate='true']>span:last-child {
-webkit-transition: all 0.2s;
Expand Down
5 changes: 1 addition & 4 deletions src/components/Controls/CheckBox/CheckBox.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ A universal CheckBox component that the input component for any forms.

<UsageGuidelines
guidelines={['Use if you have multiple options and need to select 1+ items.']}
policies={[
'If you can select exactly 1 items use radio buttons',
'If you can select exactly 1 item from the multiple options, use radio buttons',
]}
policies={['If you can select exactly 1 items use radio buttons']}
/>

<SubsectionHeader title="Variants" />
Expand Down
10 changes: 5 additions & 5 deletions src/components/Controls/CheckBox/CheckBox.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ export const CheckBoxLabelPlacement = {
render: () => (
<>
<Stack height={50}>
<CheckBox value="label">Option</CheckBox>
<CheckBox value="label">Right Label</CheckBox>
</Stack>
<Stack>
<CheckBox value="label" labelConfig={{ placement: 'left' }}>
Option
Left Label
</CheckBox>
</Stack>
</>
Expand All @@ -106,11 +106,11 @@ export const CheckBoxLabelSizes = {
render: () => (
<>
<Stack height={50}>
<CheckBox value="label">Normal Option</CheckBox>
<CheckBox value="label">Normal Label</CheckBox>
</Stack>
<Stack>
<CheckBox value="label" labelConfig={{ size: 'large' }}>
Large Option
Large Label
</CheckBox>
</Stack>
</>
Expand All @@ -121,7 +121,7 @@ export const CheckBoxLabelSizes = {

export const CheckBoxLabelHelptext = {
render: () => (
<CheckBox value="label" labelConfig={{ helpText: 'This is the helptext of the option' }}>
<CheckBox value="label" labelConfig={{ helpText: 'Short text that adds context' }}>
Option
</CheckBox>
),
Expand Down
5 changes: 0 additions & 5 deletions src/components/Controls/CheckBox/CheckBox.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ export const checkboxStyles =
&[data-selected='true'],
&[data-indeterminate='true'] {
&:hover {
background: none;
box-shadow: none;
}
& > span:last-child {
transition: all 0.2s;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ exports[`Checkbox Component > it renders the Checkbox correctly 1`] = `
border-radius: 100%;
}
.emotion-1[data-selected='true']:hover,
.emotion-1[data-indeterminate='true']:hover {
background: none;
box-shadow: none;
}
.emotion-1[data-selected='true']>span:last-child,
.emotion-1[data-indeterminate='true']>span:last-child {
-webkit-transition: all 0.2s;
Expand Down
17 changes: 9 additions & 8 deletions src/components/Controls/Switch/Switch.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { FIGMA_URL } from 'utils/common';
import { FIGMA_URL } from '../../../utils/common';
import Switch from './Switch';
import { useState } from 'react';
import Stack from 'components/storyUtils/Stack';
import Stack from '../../storyUtils/Stack';
import { boolean, select, text } from '@storybook/addon-knobs';
import React from 'react';

export default {
title: 'Updated Components/Controls/Switch',
Expand Down Expand Up @@ -35,10 +36,10 @@ export const SwitchLabelPlacement = {
return (
<>
<Stack height={50}>
<Switch>Option</Switch>
<Switch>Right Label</Switch>
</Stack>
<Stack>
<Switch labelConfig={{ placement: 'left' }}>Option</Switch>
<Switch labelConfig={{ placement: 'left' }}>Left Label</Switch>
</Stack>
</>
);
Expand All @@ -51,10 +52,10 @@ export const SwitchLabelSizes = {
return (
<>
<Stack height={50}>
<Switch>Normal Option</Switch>
<Switch>Normal Label</Switch>
</Stack>
<Stack>
<Switch labelConfig={{ size: 'large' }}>Large Option</Switch>
<Switch labelConfig={{ size: 'large' }}>Large Label</Switch>
</Stack>
</>
);
Expand All @@ -64,7 +65,7 @@ export const SwitchLabelSizes = {

export const SwitchWithHelptext = {
render: () => {
return <Switch labelConfig={{ helpText: 'This is the helptext of the option' }}>Option</Switch>;
return <Switch labelConfig={{ helpText: 'Short text that adds context' }}>Option</Switch>;
},
name: 'Switch with helptext',
};
Expand Down Expand Up @@ -105,4 +106,4 @@ export const Playground = {
);
},
name: 'Playground',
};
};

0 comments on commit 2403bfc

Please sign in to comment.