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

Commit

Permalink
Limted transition to background-color
Browse files Browse the repository at this point in the history
  • Loading branch information
willemliu committed Mar 20, 2019
1 parent bbe0899 commit bf44bd0
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 19 deletions.
2 changes: 1 addition & 1 deletion dist/buttons.js

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fdmg/fd-buttons",
"version": "1.0.22",
"version": "1.0.23",
"description": "FD-themed buttons",
"types": "dist/Buttons.d.ts",
"main": "dist/buttons.js",
Expand Down Expand Up @@ -56,9 +56,9 @@
"ts-jest": "^24.0.0",
"tslint": "^5.14.0",
"tslint-react": "^3.6.0",
"typescript": "^3.3.3333",
"typescript": "^3.3.4000",
"webpack": "^4.29.6",
"webpack-cli": "^3.2.3"
"webpack-cli": "^3.3.0"
},
"dependencies": {
"react": "^16.8.4",
Expand Down
3 changes: 2 additions & 1 deletion src/AddButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default class AddButton extends PureComponent<any, any> {

const GlobalStyle = createGlobalStyle`
.fd-add-button {
position: relative;
outline: none;
border-radius: 2px;
white-space: nowrap;
Expand All @@ -30,7 +31,7 @@ const GlobalStyle = createGlobalStyle`
color: #ffeadb;
background-color: #ff7812;
cursor: pointer;
transition: all .2s;
transition: background-color .2s;
font-family: 'ProximaNovaRegular', sans-serif;
font-size: 14px;
Expand Down
3 changes: 2 additions & 1 deletion src/ButtonCta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default class ButtonCallToAction extends PureComponent<any, any> {

const GlobalStyles = createGlobalStyle`
.fd-button-cta {
position: relative;
min-height: 2rem;
display: inline-block;
align-items: center;
Expand All @@ -32,7 +33,7 @@ const GlobalStyles = createGlobalStyle`
}
box-shadow: rgba(0, 0, 0, 0.2) 0px -2px 0px 0px inset;
border-radius: 2px;
transition: all .1s;
transition: background-color .1s;
font-family: 'ProximaNovaBold', sans-serif;
font-weight: normal;
&.m {
Expand Down
3 changes: 2 additions & 1 deletion src/ButtonEditorial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default class ButtonEditorial extends PureComponent<any, any> {

const GlobalStyles = createGlobalStyle`
.fd-button {
position: relative;
min-height: 2rem;
display: inline-block;
align-items: center;
Expand All @@ -33,7 +34,7 @@ const GlobalStyles = createGlobalStyle`
box-shadow: rgba(0, 0, 0, 0.2) 0px -2px 0px 0px inset;
border: none;
border-radius: 2px;
transition: all .1s;
transition: background-color .1s;
font-family: 'ProximaNovaBold', sans-serif;
font-weight: normal;
&.m {
Expand Down
3 changes: 2 additions & 1 deletion src/FollowButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default class FollowButton extends PureComponent<Props, any> {

const GlobalStyle = createGlobalStyle`
.fd-follow-button {
position: relative;
outline: none;
border-radius: 2px;
white-space: nowrap;
Expand All @@ -38,7 +39,7 @@ const GlobalStyle = createGlobalStyle`
color: #49a4a2;
background-color: transparent;
cursor: pointer;
transition: all .2s;
transition: background-color .2s;
font-family: 'ProximaNovaRegular', sans-serif;
font-size: 14px;
Expand Down

0 comments on commit bf44bd0

Please sign in to comment.