Skip to content

Commit

Permalink
fix: Restore buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
d-beezee committed Dec 21, 2023
1 parent 98802b1 commit 2ddbf61
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/stories/button/getButtonStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ const getButtonStyle = (
color: ${theme.colors.white};
}
}`;
}

if (disabled) {
style += `
if (disabled) {
style += `
cursor: not-allowed;
pointer-events: none;
opacity: .65;
Expand All @@ -101,16 +102,15 @@ const getButtonStyle = (
color: ${theme.colors.disabledFont};
`;

if (flat) {
style += `
if (flat) {
style += `
background-color: ${theme.colors.white};
border-color: ${theme.colors.elementGeneric};
`;
}
}

return style;
}

return style;
};

export default getButtonStyle;

0 comments on commit 2ddbf61

Please sign in to comment.