Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Add --duet-color-border variable for border color #70

Merged

Conversation

dmitriid
Copy link
Contributor

@dmitriid dmitriid commented Feb 26, 2021

Fixes #41

I kept it backwards compatible by defaulting the border color to text color, as it was before

@dmitriid dmitriid mentioned this pull request Feb 26, 2021
@WickyNilliams WickyNilliams merged commit fea486a into duetds:master Mar 19, 2021
@WickyNilliams
Copy link
Contributor

Thanks for this!

@WickyNilliams
Copy link
Contributor

Just realised this wasn't 100% backwards compatible. Whilst the default theme kept working, it would break people's existing custom themes (since this new variable is not defined in their theme).

I had to make this change to the picker's styles:

-border: 1px solid var(--duet-color-border);
+border: 1px solid var(--duet-color-border, var(--duet-color-text));

Now it will fallback to the old value, even for custom themes. Thankfully I hadn't released yet :)

@dmitriid
Copy link
Contributor Author

Makes sense :)

@WickyNilliams
Copy link
Contributor

Released in v1.3.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expand CSS variables
2 participants