Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

fix: color contrast a11y (#133) #202

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/TemplateLibrary/TemplateActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ import { Icon } from 'semantic-ui-react';

const ActionsContainer = styled.div`
padding: 0 !important;
background-color: ${props => props.color || '#F9F9F9'} !important;
background-color: ${props => props.ACTION_BUTTON || '#F9F9F9'} !important;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  background-color: ${props => props.color || '#F9F9F9'} !important;

max-height: 30px;
`;

const TemplateBtn = styled.a`
padding: 5px 10px;
display: inline-block;
color: ${props => props.color || '#484848'};
color: ${props => props.ACTION_BUTTON || '#484848'};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  color: ${props => props.color || '#484848'};

font-family: "IBM Plex Sans";
font-size: 0.75em;
font-weight: bold;
`;

const AddToContractBtn = styled(TemplateBtn)`
width: 60%;
border-right: 1px solid ${props => props.color || '#E1E5EB'};
border-right: 1px solid ${props => props.ACTION_BUTTON_BORDER || '#E1E5EB'};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  border-right: 1px solid ${props => props.borderColor || '#E1E5EB'}; 

cursor: pointer;
&:hover {
color: #3087CB;
Expand Down Expand Up @@ -49,7 +49,7 @@ class TemplateActions extends React.Component {
return (
<ActionsContainer color={libraryProps.ACTION_BUTTON_BG}>
<div>
<AddToContractBtn className="adToContractButton" color={libraryProps.ACTION_BUTTON_BORDER} onClick={() => this.props.addToCont(this.props.uriKey)} >
<AddToContractBtn className="adToContractButton" {...libraryProps} onClick={() => this.props.addToCont(this.props.uriKey)} >
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

            color={libraryProps.ACTION_BUTTON}
            borderColor={libraryProps.ACTION_BUTTON_BORDER}

<Icon name="plus" />
Add to contract
</AddToContractBtn>
Expand Down