Skip to content

Commit

Permalink
Bugfixes for Avatar and IconButton components (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
germain-gg authored Sep 1, 2023
1 parent 5dda11a commit 0682d6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export const Avatar = forwardRef<
size,
style = {},
onError,
title,
...props
},
ref,
Expand Down Expand Up @@ -128,7 +129,7 @@ export const Avatar = forwardRef<
style={style}
width={size}
height={size}
title={id}
title={title}
onError={onError}
/>
)}
Expand Down
4 changes: 2 additions & 2 deletions src/components/IconButton/IconButton.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ limitations under the License.
width: calc(var(--cpd-icon-button-size) * 0.25);
height: calc(var(--cpd-icon-button-size) * 0.25);
border-radius: 50%;
background: currentColor;
background: currentcolor;
}

.icon-button[data-indicator="highlight"]::before {
Expand All @@ -68,7 +68,7 @@ limitations under the License.
* Hover state
*/

.icon-button:hover {
.icon-button:not(:disabled):hover {
color: var(--cpd-color-icon-primary);
background: var(--cpd-color-bg-subtle-primary);
}
Expand Down

0 comments on commit 0682d6a

Please sign in to comment.