Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed warning for not using hex code for the color white and updated … #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- **Social icons** and network specific **share methods**
- OnPress ripple effect
- Look and feel customisable and extendable in two ways: via **CSS custom properties** or **SASS** variables and lists ([scss config file](https://github.com/rcaferati/react-awesome-button/blob/master/src/styles/default.scss)).
- Use it with **CSSModules** or **Plain CSS
- Use it with **CSSModules** or **Plain CSS**

## Live demo

Expand Down Expand Up @@ -74,7 +74,7 @@ function Button() {
### `AwesomeButton` rendered with a button tag

Renders the component with a `Button` tag and an onPress prop called on animation release.
Checkout this example live on the [storyboard](https://caferati.me/demo/react-awesome-button/storybook/?selectedKind=AwesomeButton&selectedStory=Primary).
Checkout this example live on the [storybook](https://caferati.me/demo/react-awesome-button/storybook/?selectedKind=AwesomeButton&selectedStory=Primary).
```jsx
import { AwesomeButton } from "react-awesome-button";
import AwesomeButtonStyles from "react-awesome-button/src/styles/styles.scss";
Expand All @@ -97,9 +97,9 @@ function Button() {

### `AwesomeButton` rendered with an anchor tag

Render the component with an `anchor` tag setting the href and target attributes.
Render the component with an `anchor` tag setting the **href** and **target** attributes.

Checkout this example live on the [storyboard](https://caferati.me/demo/react-awesome-button/storybook/?selectedKind=AwesomeButton&selectedStory=Link).
Checkout this example live on the [storybook](https://caferati.me/demo/react-awesome-button/storybook/?selectedKind=AwesomeButton&selectedStory=Link).

```jsx
import { AwesomeButton } from "react-awesome-button";
Expand Down Expand Up @@ -135,7 +135,7 @@ function Button() {

### `AwesomeButtonProgress` basic example

Checkout this example live on the [storyboard](https://caferati.me/demo/react-awesome-button/storybook/?selectedKind=AwesomeButtonProgress&selectedStory=Success).
Checkout this example live on the [storybook](https://caferati.me/demo/react-awesome-button/storybook/?selectedKind=AwesomeButtonProgress&selectedStory=Success).

```jsx
import { AwesomeButtonProgress } from 'react-awesome-button';
Expand Down Expand Up @@ -169,7 +169,7 @@ Being a wrapper on the **`AwesomeButton`** component, it accepts its props plus

### `AwesomeButtonSocial` basic example

Checkout this example live on the [storyboard](https://caferati.me/demo/react-awesome-button/storybook/?selectedKind=AwesomeButtonSocial&selectedStory=Facebook).
Checkout this example live on the [storybook](https://caferati.me/demo/react-awesome-button/storybook/?selectedKind=AwesomeButtonSocial&selectedStory=Facebook).

```jsx
import { AwesomeButtonSocial } from 'react-awesome-button';
Expand Down
22 changes: 11 additions & 11 deletions demo/public/website/react-awesome-slider.css
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ pre[class*="language-"] {
--transform-speed: 0.175s;
--button-primary-color: #FFB300;
--button-primary-color-dark: #cc8f00;
--button-primary-color-light: white;
--button-primary-color-light: #ffffff;
--button-primary-color-hover: #f2aa00;
--button-primary-color-active: #cc8f00;
--button-primary-border: none;
Expand All @@ -797,7 +797,7 @@ pre[class*="language-"] {
--button-secondary-border: none;
--button-anchor-color: #FF6F00;
--button-anchor-color-dark: #b34e00;
--button-anchor-color-light: white;
--button-anchor-color-light: #ffffff;
--button-anchor-color-hover: #f56b00;
--button-anchor-color-active: #e66400;
--button-anchor-border: none;
Expand Down Expand Up @@ -1721,7 +1721,7 @@ span.aws-btn__bubble--Zt4- {
--transform-speed: 0.175s;
--button-primary-color: #1e88e5;
--button-primary-color-dark: #1360a4;
--button-primary-color-light: white;
--button-primary-color-light: #ffffff;
--button-primary-color-hover: #187bd1;
--button-primary-color-active: #166dba;
--button-primary-border: none;
Expand All @@ -1733,7 +1733,7 @@ span.aws-btn__bubble--Zt4- {
--button-secondary-border: none;
--button-anchor-color: #0e4f88;
--button-anchor-color-dark: #072743;
--button-anchor-color-light: white;
--button-anchor-color-light: #ffffff;
--button-anchor-color-hover: #0d4a7f;
--button-anchor-color-active: #0c4271;
--button-anchor-border: none;
Expand Down Expand Up @@ -2660,7 +2660,7 @@ span.aws-btn__bubble--36XZ {
--transform-speed: 0.175s;
--button-primary-color: #5e6fbf;
--button-primary-color-dark: #3b4b95;
--button-primary-color-light: white;
--button-primary-color-light: #ffffff;
--button-primary-color-hover: #4c5fb8;
--button-primary-color-active: #4354a7;
--button-primary-border: none;
Expand All @@ -2672,7 +2672,7 @@ span.aws-btn__bubble--36XZ {
--button-secondary-border: none;
--button-anchor-color: #55a1b6;
--button-anchor-color-dark: #397585;
--button-anchor-color-light: white;
--button-anchor-color-light: #ffffff;
--button-anchor-color-hover: #4e9db3;
--button-anchor-color-active: #4994a9;
--button-anchor-border: none;
Expand Down Expand Up @@ -5483,7 +5483,7 @@ span.aws-btn__bubble--2bLu {
--transform-speed: 0.15s;
--button-primary-color: #1E88E5;
--button-primary-color-dark: #1360a4;
--button-primary-color-light: white;
--button-primary-color-light: #ffffff;
--button-primary-color-hover: #187bd1;
--button-primary-color-active: #166dba;
--button-primary-border: none;
Expand All @@ -5495,7 +5495,7 @@ span.aws-btn__bubble--2bLu {
--button-secondary-border: 2px solid #1E88E5;
--button-anchor-color: #0e4f88;
--button-anchor-color-dark: #072743;
--button-anchor-color-light: white;
--button-anchor-color-light: #ffffff;
--button-anchor-color-hover: #0d4a7f;
--button-anchor-color-active: #0c4271;
--button-anchor-border: none;
Expand Down Expand Up @@ -6431,7 +6431,7 @@ span.aws-btn__bubble--1m7t {
--button-secondary-border: none;
--button-anchor-color: #3D5AFE;
--button-anchor-color-dark: #0125ed;
--button-anchor-color-light: white;
--button-anchor-color-light: #ffffff;
--button-anchor-color-hover: #3351fe;
--button-anchor-color-active: #2444fe;
--button-anchor-border: none;
Expand Down Expand Up @@ -7355,7 +7355,7 @@ span.aws-btn__bubble--3bDC {
--transform-speed: 0.165s;
--button-primary-color: #f44336;
--button-primary-color-dark: #ba160a;
--button-primary-color-light: white;
--button-primary-color-light: #ffffff;
--button-primary-color-hover: #f3382a;
--button-primary-color-active: #ea1c0d;
--button-primary-border: none;
Expand All @@ -7367,7 +7367,7 @@ span.aws-btn__bubble--3bDC {
--button-secondary-border: none;
--button-anchor-color: #c62828;
--button-anchor-color-dark: #470e0e;
--button-anchor-color-light: white;
--button-anchor-color-light: #ffffff;
--button-anchor-color-hover: #be2626;
--button-anchor-color-active: #b12424;
--button-anchor-border: none;
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
--transform-speed: 0.15s;
--button-primary-color: #1E88E5;
--button-primary-color-dark: #1360a4;
--button-primary-color-light: white;
--button-primary-color-light: #ffffff;
--button-primary-color-hover: #187bd1;
--button-primary-color-active: #166dba;
--button-primary-border: none;
Expand All @@ -39,7 +39,7 @@
--button-secondary-border: 2px solid #1E88E5;
--button-anchor-color: #0e4f88;
--button-anchor-color-dark: #072743;
--button-anchor-color-light: white;
--button-anchor-color-light: #ffffff;
--button-anchor-color-hover: #0d4a7f;
--button-anchor-color-active: #0c4271;
--button-anchor-border: none;
Expand Down
4 changes: 2 additions & 2 deletions dist/themes/theme-amber.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
--transform-speed: 0.175s;
--button-primary-color: #FFB300;
--button-primary-color-dark: #cc8f00;
--button-primary-color-light: white;
--button-primary-color-light: #ffffff;
--button-primary-color-hover: #f2aa00;
--button-primary-color-active: #cc8f00;
--button-primary-border: none;
Expand All @@ -39,7 +39,7 @@
--button-secondary-border: none;
--button-anchor-color: #FF6F00;
--button-anchor-color-dark: #b34e00;
--button-anchor-color-light: white;
--button-anchor-color-light: #ffffff;
--button-anchor-color-hover: #f56b00;
--button-anchor-color-active: #e66400;
--button-anchor-border: none;
Expand Down
4 changes: 2 additions & 2 deletions dist/themes/theme-blue.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
--transform-speed: 0.175s;
--button-primary-color: #1e88e5;
--button-primary-color-dark: #1360a4;
--button-primary-color-light: white;
--button-primary-color-light: #ffffff;
--button-primary-color-hover: #187bd1;
--button-primary-color-active: #166dba;
--button-primary-border: none;
Expand All @@ -39,7 +39,7 @@
--button-secondary-border: none;
--button-anchor-color: #0e4f88;
--button-anchor-color-dark: #072743;
--button-anchor-color-light: white;
--button-anchor-color-light: #ffffff;
--button-anchor-color-hover: #0d4a7f;
--button-anchor-color-active: #0c4271;
--button-anchor-border: none;
Expand Down
4 changes: 2 additions & 2 deletions dist/themes/theme-bojack.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
--transform-speed: 0.175s;
--button-primary-color: #5e6fbf;
--button-primary-color-dark: #3b4b95;
--button-primary-color-light: white;
--button-primary-color-light: #ffffff;
--button-primary-color-hover: #4c5fb8;
--button-primary-color-active: #4354a7;
--button-primary-border: none;
Expand All @@ -39,7 +39,7 @@
--button-secondary-border: none;
--button-anchor-color: #55a1b6;
--button-anchor-color-dark: #397585;
--button-anchor-color-light: white;
--button-anchor-color-light: #ffffff;
--button-anchor-color-hover: #4e9db3;
--button-anchor-color-active: #4994a9;
--button-anchor-border: none;
Expand Down
4 changes: 2 additions & 2 deletions dist/themes/theme-flat.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
--transform-speed: 0.15s;
--button-primary-color: #1E88E5;
--button-primary-color-dark: #1360a4;
--button-primary-color-light: white;
--button-primary-color-light: #ffffff;
--button-primary-color-hover: #187bd1;
--button-primary-color-active: #166dba;
--button-primary-border: none;
Expand All @@ -39,7 +39,7 @@
--button-secondary-border: 2px solid #1E88E5;
--button-anchor-color: #0e4f88;
--button-anchor-color-dark: #072743;
--button-anchor-color-light: white;
--button-anchor-color-light: #ffffff;
--button-anchor-color-hover: #0d4a7f;
--button-anchor-color-active: #0c4271;
--button-anchor-border: none;
Expand Down
2 changes: 1 addition & 1 deletion dist/themes/theme-indigo.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
--button-secondary-border: none;
--button-anchor-color: #3D5AFE;
--button-anchor-color-dark: #0125ed;
--button-anchor-color-light: white;
--button-anchor-color-light: #ffffff;
--button-anchor-color-hover: #3351fe;
--button-anchor-color-active: #2444fe;
--button-anchor-border: none;
Expand Down
4 changes: 2 additions & 2 deletions dist/themes/theme-one.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
--button-primary-border: none;
--button-secondary-color: #afafaf;
--button-secondary-color-dark: #898989;
--button-secondary-color-light: white;
--button-secondary-color-light: #ffffff;
--button-secondary-color-hover: #a2a2a2;
--button-secondary-color-active: #969696;
--button-secondary-border: none;
--button-anchor-color: #afafaf;
--button-anchor-color-dark: #898989;
--button-anchor-color-light: white;
--button-anchor-color-light: #ffffff;
--button-anchor-color-hover: #a2a2a2;
--button-anchor-color-active: #969696;
--button-anchor-border: none;
Expand Down
4 changes: 2 additions & 2 deletions dist/themes/theme-orange.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
--button-primary-border: none;
--button-secondary-color: #afafaf;
--button-secondary-color-dark: #898989;
--button-secondary-color-light: white;
--button-secondary-color-light: #ffffff;
--button-secondary-color-hover: #a2a2a2;
--button-secondary-color-active: #969696;
--button-secondary-border: none;
--button-anchor-color: #afafaf;
--button-anchor-color-dark: #898989;
--button-anchor-color-light: white;
--button-anchor-color-light: #ffffff;
--button-anchor-color-hover: #a2a2a2;
--button-anchor-color-active: #969696;
--button-anchor-border: none;
Expand Down
4 changes: 2 additions & 2 deletions dist/themes/theme-red.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
--transform-speed: 0.165s;
--button-primary-color: #f44336;
--button-primary-color-dark: #ba160a;
--button-primary-color-light: white;
--button-primary-color-light: #ffffff;
--button-primary-color-hover: #f3382a;
--button-primary-color-active: #ea1c0d;
--button-primary-border: none;
Expand All @@ -39,7 +39,7 @@
--button-secondary-border: none;
--button-anchor-color: #c62828;
--button-anchor-color-dark: #470e0e;
--button-anchor-color-light: white;
--button-anchor-color-light: #ffffff;
--button-anchor-color-hover: #be2626;
--button-anchor-color-active: #b12424;
--button-anchor-border: none;
Expand Down
4 changes: 2 additions & 2 deletions dist/themes/theme-three.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
--button-primary-border: none;
--button-secondary-color: #afafaf;
--button-secondary-color-dark: #898989;
--button-secondary-color-light: white;
--button-secondary-color-light: #ffffff;
--button-secondary-color-hover: #a2a2a2;
--button-secondary-color-active: #969696;
--button-secondary-border: none;
--button-anchor-color: #afafaf;
--button-anchor-color-dark: #898989;
--button-anchor-color-light: white;
--button-anchor-color-light: #ffffff;
--button-anchor-color-hover: #a2a2a2;
--button-anchor-color-active: #969696;
--button-anchor-border: none;
Expand Down
4 changes: 2 additions & 2 deletions dist/themes/theme-two.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
--button-primary-border: none;
--button-secondary-color: #afafaf;
--button-secondary-color-dark: #898989;
--button-secondary-color-light: white;
--button-secondary-color-light: #ffffff;
--button-secondary-color-hover: #a2a2a2;
--button-secondary-color-active: #969696;
--button-secondary-border: none;
--button-anchor-color: #afafaf;
--button-anchor-color-dark: #898989;
--button-anchor-color-light: white;
--button-anchor-color-light: #ffffff;
--button-anchor-color-hover: #a2a2a2;
--button-anchor-color-active: #969696;
--button-anchor-border: none;
Expand Down