Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
feat: disable button when library may not be edited
Browse files Browse the repository at this point in the history
  • Loading branch information
marionebl committed Sep 10, 2018
1 parent 3d9ee4b commit bba7694
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/button-group/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ const StyledButtonGroup = styled.div`
border-left-width: 0.5px;
}
}
[disabled] {
opacity: 0.3;
}
`;

export const ButtonGroupButton = props => (
Expand Down
1 change: 1 addition & 0 deletions src/components/button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export const Button: React.StatelessComponent<ButtonProps> = props => {
size={props.size}
inverted={props.inverted}
style={{ color: props.textColor }}
disabled={props.disabled}
>
{props.children}
</Component>
Expand Down

0 comments on commit bba7694

Please sign in to comment.