Skip to content

Conversation

PiyushThapaa
Copy link
Contributor

@PiyushThapaa PiyushThapaa commented Dec 30, 2023

Fixes #2808

Changes:
I corrected the code in toolbar.scss file line 147

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #2808

cursor: pointer;
@include themify(){
color:getThemifyVariable('logo-color');
accent-color:getThemifyVariable('logo-color');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks good, and it seems like this property has pretty good support: https://caniuse.com/mdn-css_properties_accent-color It's definitely working for me!

I'm wondering if we want some sort of fallback for older browsers which don't support accent-color. Like will the color setting work there or will it do nothing? I'm reading some articles and it seems like it would do nothing but I'm not sure. Do you know? (it's ok if you don't)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@lindapaiste See, the color property is not working anywhere because it is not the property to change the color of a input checkbox ( as far as i know ). May be accent color will not work in some older browsers but color property will not work anywhere because it is not the property to change the color of a input checkbox. So its better to use accent color.
I run this code locally and in my browsers it works perfectly file... You can see that in the issue #2808 in expected behaviour.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok yeah I was wondering if there was an easy way to get backwards compatibility but it seems like there is not. So this looks good.

@lindapaiste lindapaiste merged commit e77bc6a into processing:develop Dec 31, 2023
@raclim raclim added this to the MINOR Release for 2.11.0 milestone Jan 12, 2024
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.

Color of checkbox should be of p5 editor's theme but its not

3 participants