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

Cookie consent color adjustability #1277

Merged
merged 3 commits into from
Nov 27, 2024
Merged

Conversation

snmln
Copy link
Contributor

@snmln snmln commented Nov 26, 2024

Related Ticket: #1246

Description of Changes

Exposing styling options for the cookie consent form.

Notes & Questions About Changes

Adding the ability to pass theme styling through the veda.config.js file within the cookieConsent object:

cookieConsentForm:{
...
theme: {
    card: {
      backgroundColor: '#2276ac',
      sideBarColor: '#175074',
      textColor: 'White',
      linkColor: '#175074'
    },
    acceptButton: {
      default: { backgroundColor: '#175074', textColor: 'white' },
      hover: { backgroundColor: '#2c3e50', textColor: '#white' }
    },
    declineButton: {
      default: { borderColor: '#175074', textColor: '#175074' },
      hover: { borderColor: '#2c3e50', textColor: '#2c3e50' }
    },
    iconColor: { default: 'White', hover: '#175074' }
  } }}

Validation / Testing

To test pull down the branch and change the theme content to the desired changes and visually confirm that the changes are resolving on the front-end.

Copy link

netlify bot commented Nov 26, 2024

Deploy Preview for veda-ui ready!

Name Link
🔨 Latest commit 4d30219
🔍 Latest deploy log https://app.netlify.com/sites/veda-ui/deploys/67463e6ba7cf080008737180
😎 Deploy Preview https://deploy-preview-1277--veda-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@snmln snmln linked an issue Nov 27, 2024 that may be closed by this pull request
1 task
Copy link
Collaborator

@dzole0311 dzole0311 left a comment

Choose a reason for hiding this comment

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

Tested locally by changing the color values in veda.config.js, works as expected.

Screenshot 2024-11-27 at 16 23 28

@snmln snmln merged commit 33594d0 into main Nov 27, 2024
9 checks passed
@snmln snmln deleted the cookie-consent-color-adjustability branch November 27, 2024 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Instances can adjust colors in cookie consent
2 participants