readme update

This commit is contained in:
Rick van Lieshout 2020-10-14 09:03:22 +02:00
parent f51e2a0555
commit d99d88f5b8

View File

@ -153,6 +153,8 @@ If the decline button is enabled then the (onDecline) prop function can be used,
| ButtonComponent | React component | button | React Component to render as a button. | | ButtonComponent | React component | button | React Component to render as a button. |
| sameSite | string, "strict", "lax" or "none" | none | Cookies sameSite attribute value | | sameSite | string, "strict", "lax" or "none" | none | Cookies sameSite attribute value |
| cookieSecurity | boolean | undefined | Cookie security level. Defaults to true unless running on http. | | cookieSecurity | boolean | undefined | Cookie security level. Defaults to true unless running on http. |
| ariaAcceptLabel | string | Accept cookies | Aria label to set on the accept button |
| ariaDeclineLabel | string | Decline cookies | Aria label to set on the decline button |
## Debugging it ## Debugging it
@ -180,7 +182,6 @@ When checking the cookie it'll do it in reverse. If the regular cookie exists, i
The long story can be found here: [pull-request#68](https://github.com/Mastermindzh/react-cookie-consent/pull/68) The long story can be found here: [pull-request#68](https://github.com/Mastermindzh/react-cookie-consent/pull/68)
## Styling it ## Styling it
You can provide styling for the bar, the button and the content. Note that the bar has a `display: flex` property as default and is parent to its children "content" and "button". You can provide styling for the bar, the button and the content. Note that the bar has a `display: flex` property as default and is parent to its children "content" and "button".