Skip to content

Commit 1cc76c2

Browse files
authored
Merge pull request #406 from element-hq/t3chguy/fix-imageless-avatar-button
2 parents c90a5c8 + e4718ce commit 1cc76c2

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed
4.61 KB
Loading
14.6 KB
Loading

src/components/Avatar/Avatar.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ button.avatar:disabled {
5151
overflow: hidden;
5252
}
5353

54+
/* Additional selector for button to raise selector above button.avatar */
55+
button.avatar-imageless,
5456
.avatar-imageless {
5557
/* In the future we'd prefer to pass the HEX code as the data attr
5658
and use `attr(data-color)` to avoid the style declaration from below

src/components/Avatar/Avatar.stories.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ export const NoImageFallback: Story = {
5353
},
5454
};
5555

56+
export const NoImageFallbackButton: Story = {
57+
tags: ["axe-exclude"],
58+
args: {
59+
...NoImageFallback.args,
60+
...Button.args,
61+
},
62+
};
63+
5664
export const LargeNoImageFallback: Story = {
5765
args: {
5866
src: "",

0 commit comments

Comments
 (0)