Skip to content

Commit 65b89c5

Browse files
authored
fix: image card link hover (#995)
* fix: image card link hover
1 parent 1fc2e92 commit 65b89c5

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

src/sub-blocks/ImageCard/ImageCard.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,9 @@ $block: '.#{$ns}image-card';
7373
}
7474
}
7575
}
76+
77+
a#{$block} {
78+
@include reset-link-style();
79+
@include reset-link-hover();
80+
@include card($hover: true);
81+
}

src/sub-blocks/ImageCard/__stories__/ImageCard.stories.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,14 @@ export const Margins = MultipleTemplate.bind({});
158158
export const DirectionReverse = MultipleTemplate.bind({});
159159
export const Content = ContentTemplate.bind({});
160160
export const BackgroundColor = MultipleTemplate.bind({});
161+
export const WithUrl = MultipleTemplate.bind({});
161162
export const Border = BorderTemplate.bind({});
162163
export const BorderRadius = BorderRadiusTemplate.bind({});
163164
export const ControlPosition = ControlPositionTemplate.bind({});
164165

165166
DirectionReverse.args = {direction: 'reverse'} as Partial<ImageCardProps>;
166167
BackgroundColor.args = {...data.backgroundColor.content};
168+
WithUrl.args = {...data.withUrl.content};
167169
ControlPosition.args = undefined;
168170
ControlPosition.argTypes = {
169171
title: {table: {disable: true}},

src/sub-blocks/ImageCard/__stories__/data.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
"backgroundColor": "#ccf0d2"
4949
}
5050
},
51+
"withUrl": {
52+
"content": {
53+
"url": "https://example.com"
54+
}
55+
},
5156
"content": {
5257
"url": "https://example.com",
5358
"links": [

0 commit comments

Comments
 (0)