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

Commit

Permalink
feat(Button): hack button spacing & colors to be Connect friendly
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Primary & default button colors and spacing all modified.  Please adjust
accordingly.
  • Loading branch information
cdaringe committed Jul 28, 2017
1 parent d7e4e39 commit e1f27b5
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 26 deletions.
9 changes: 6 additions & 3 deletions semantic/src/themes/tripwire/elements/button.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
border-radius: 0px;
}

.ui.button.primary {
border: none;
}

.ui.button:active,
.ui.active.button:active {
border-color: @blue;
Expand All @@ -24,9 +28,8 @@

.ui.button:focus,
.ui.button:hover {
border-color: @blue;
color: @blue;
background: @white;
border-color: @hoverBackgroundColor;
color: @white;
}
.ui.button:active {
border-color: @blue;
Expand Down
4 changes: 2 additions & 2 deletions semantic/src/themes/tripwire/elements/button.variables
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

/* Button */
@verticalMargin: 0em;
@horizontalMargin: 0.5em;
@horizontalMargin: 0.8em;
@backgroundColor: #E0E1E2;
@backgroundImage: none;
@background: @backgroundColor @backgroundImage;
Expand Down Expand Up @@ -84,7 +84,7 @@
--------------------*/

/* Hovered */
@hoverBackgroundColor: #CACBCD;
@hoverBackgroundColor: #999;
@hoverBackgroundImage: @backgroundImage;
@hoverBoxShadow: @boxShadow;
@hoverColor: @hoveredTextColor;
Expand Down
60 changes: 48 additions & 12 deletions src/components/suir/button/Button.examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,6 @@
const Button = require('semantic-ui-react').Button;
<Button className=''>Test button</Button>

## Disabled Button

const Button = require('semantic-ui-react').Button;
<Button className='' disabled >Some Copy </Button>

## Active Button

const Button = require('semantic-ui-react').Button;
<Button className='' active>
Some Copy
</Button>

## Positive Button

const Button = require('semantic-ui-react').Button;
Expand All @@ -31,6 +19,54 @@
Negative
</Button>

## Primary Button

const Button = require('semantic-ui-react').Button;
<div>
<Button primary className=''>
<i className='icon_check' style={{marginRight: '10px'}} />
Primary
</Button>
<Button primary active className=''>
<i className='icon_check' style={{marginRight: '10px'}} />
Primary Active
</Button>
<Button primary disabled className=''>
<i className='icon_check' style={{marginRight: '10px'}} />
Primary Disabled
</Button>
</div>

## Secondary Button

const Button = require('semantic-ui-react').Button;
<div>
<Button secondary className=''>
<i className='icon_check' style={{marginRight: '10px'}} />
Secondary
</Button>
<Button secondary active className=''>
<i className='icon_check' style={{marginRight: '10px'}} />
Secondary Active
</Button>
<Button secondary disabled className=''>
<i className='icon_check' style={{marginRight: '10px'}} />
Secondary Disabled
</Button>
</div>

## Disabled Button

const Button = require('semantic-ui-react').Button;
<Button className='' disabled >Some Copy </Button>

## Active Button

const Button = require('semantic-ui-react').Button;
<Button className='' active>
Some Copy
</Button>

## Icon Button

const Button = require('semantic-ui-react').Button;
Expand Down
12 changes: 3 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ async-each@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d"

[email protected]:
[email protected], async@^2.0.1, async@^2.1.4:
version "2.1.4"
resolved "https://registry.yarnpkg.com/async/-/async-2.1.4.tgz#2d2160c7788032e4dd6cbe2502f1f9a2c8f6cde4"
dependencies:
Expand All @@ -396,12 +396,6 @@ async@^1.2.1, async@^1.3.0, async@^1.4.0, async@^1.4.2:
version "1.5.2"
resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a"

async@^2.0.1, async@^2.1.4:
version "2.1.5"
resolved "https://registry.yarnpkg.com/async/-/async-2.1.5.tgz#e587c68580994ac67fc56ff86d3ac56bdbe810bc"
dependencies:
lodash "^4.14.0"

async@~0.2.6:
version "0.2.10"
resolved "https://registry.yarnpkg.com/async/-/async-0.2.10.tgz#b6bbe0b0674b9d719708ca38de8c237cb526c3d1"
Expand Down Expand Up @@ -3874,7 +3868,7 @@ got@^6.7.1:
unzip-response "^2.0.1"
url-parse-lax "^1.0.0"

[email protected], graceful-fs@^4.1.11, graceful-fs@^4.1.9, graceful-fs@~4.1.11:
[email protected], graceful-fs@^4.1.11, graceful-fs@^4.1.4, graceful-fs@^4.1.6, graceful-fs@^4.1.9, graceful-fs@~4.1.11:
version "4.1.11"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"

Expand All @@ -3884,7 +3878,7 @@ graceful-fs@^3.0.0:
dependencies:
natives "^1.1.0"

graceful-fs@^4.1.2, graceful-fs@^4.1.4, graceful-fs@^4.1.6:
graceful-fs@^4.1.2:
version "4.1.10"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.10.tgz#f2d720c22092f743228775c75e3612632501f131"

Expand Down

0 comments on commit e1f27b5

Please sign in to comment.