Skip to content

Commit 8612e04

Browse files
committed
fix: add correct id in table component story
1 parent 13ee562 commit 8612e04

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/css/forms.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ $checkbox-hover-bg-image: url('../assets/icons/ic-checkbox-hover.svg');
295295

296296
// Class for checkbox parent container, if added to parent container, hover effect will be applied to checkbox
297297
.checkbox__parent-container {
298-
&:hover {
298+
&--active, &:hover {
299299
.form__checkbox-container {
300300
background-image: $checkbox-hover-bg-image;
301301
}

src/css/iconTheming.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ $svg-fill-hex-to-var: (
121121

122122
// Class for checkbox parent container, if added to parent container, hover effect will be applied to checkbox
123123
.checkbox__parent-container {
124-
&:hover {
124+
&--active, &:hover {
125125
.form__checkbox-container {
126126
background-image: $checkbox-hover-bg-image;
127127
}

src/stories/Table.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
TableProps,
1616
TableViewWrapperProps,
1717
TableSignalEnum,
18+
TABLE_ID_MAP,
1819
} from '@devtron-labs/devtron-fe-common-lib'
1920
import { ReactComponent as ICPlay } from '@Icons/ic-play-outline.svg'
2021
import { ReactComponent as ICPause } from '@Icons/ic-pause.svg'
@@ -221,7 +222,7 @@ export const TableTemplate: Story = {
221222
columns: COLUMNS,
222223
rows: ROWS,
223224
filtersVariant: FiltersTypeEnum.STATE,
224-
id: 'table-story',
225+
id: TABLE_ID_MAP.STORYBOOK,
225226
paginationVariant: PaginationEnum.PAGINATED,
226227
emptyStateConfig: {
227228
noRowsConfig: {

0 commit comments

Comments
 (0)