-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Color Generator not updating main color when replacing with a value without hashtag #1507
Comments
I tracked down the reason for this to this block: ionic-docs/src/components/color-gen/variable-selector/color-gen-variable-selector.tsx Lines 48 to 51 in bdf3a61
The fix should be to simply drop the ionic-docs/src/components/color-gen/variable-selector/color-gen-variable-selector.tsx Line 58 in bdf3a61
It would also need to update let val = input.value.trim();
if (input.matches('[type="text"]') && val[0] !== '#') {
input.value = '#' + val;
val = input.value;
} |
Thank you for the issue. Taking a look at the newest version of the docs, the bug mentioned here no longer occurs -- the shade and tint colors update as expected -- but now there's a slightly different issue: the main color doesn't update. It would be good if we could get these working consistently with each other. |
Latest iteration of the issue (see my previous comment) resolved via #2904. Thanks again for the report! |
Describe the bug
On the ionic color generator page, the corresponding '-shade' and '-tint' sub-variables don't update when replacing a hexcode in the main variable input fields with a value missing the hashtag.
To reproduce
Steps to reproduce the behavior:
Expected behavior
After the site prepends a hashtag to the value, it's expected to auto-update the sub-variables.
Screenshots
Browser and OS
The text was updated successfully, but these errors were encountered: