Skip to content

Commit

Permalink
fix(Feedback): fixed icon size (#762)
Browse files Browse the repository at this point in the history
* fix: fixed Feedback icon size

* fix: fixed snapshots

* fix: reverted package change

---------

Co-authored-by: federico.pini <[email protected]>
  • Loading branch information
fedepini and federico.pini authored Dec 13, 2024
1 parent a1cafd3 commit 902ad1a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/components/Feedback/Feedback.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
}
}

& .icon {
width: 64px;
height: 64px;
}

& .spinner {
display: flex;
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Feedback/Feedback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const Feedback = ({
}

return (
<div data-testid="custom-icon">
<div className={styles.icon} data-testid="custom-icon">
<Icon color={getColor(type, palette)} component={customIcon || getIcon(type)} size={64} />
</div>
)
Expand Down
6 changes: 6 additions & 0 deletions src/components/Feedback/__snapshots__/Feedback.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ exports[`Feedback Component renders a feedback with a badge 1`] = `
class="content"
>
<div
class="icon"
data-testid="custom-icon"
>
<svg
Expand Down Expand Up @@ -117,6 +118,7 @@ exports[`Feedback Component renders a feedback with a custom icon 1`] = `
class="content"
>
<div
class="icon"
data-testid="custom-icon"
>
<svg
Expand Down Expand Up @@ -164,6 +166,7 @@ exports[`Feedback Component renders a feedback with a description 1`] = `
class="content"
>
<div
class="icon"
data-testid="custom-icon"
>
<svg
Expand Down Expand Up @@ -281,6 +284,7 @@ exports[`Feedback Component renders a feedback with an alert 1`] = `
class="content"
>
<div
class="icon"
data-testid="custom-icon"
>
<svg
Expand Down Expand Up @@ -384,6 +388,7 @@ exports[`Feedback Component renders a feedback with children 1`] = `
class="content"
>
<div
class="icon"
data-testid="custom-icon"
>
<svg
Expand Down Expand Up @@ -473,6 +478,7 @@ exports[`Feedback Component renders a feedback with icon and title 1`] = `
class="content"
>
<div
class="icon"
data-testid="custom-icon"
>
<svg
Expand Down

0 comments on commit 902ad1a

Please sign in to comment.