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

Fixes configurable swatch color picker in legacy admin theme #4218

Merged
merged 4 commits into from
Oct 14, 2024

Conversation

sreichel
Copy link
Contributor

Description (*)

... one error left in Chrome. (maybe someone has an idea to fix it - i have not)

Related Pull Requests

  1. See New feature: ConfigurableSwatches now allows for auto-generation of the swatch image file based on color selection #3686

Fixed Issues (if relevant)

  1. Fixes Lots of warning in the browser console related to swatches #4217

swatch

@github-actions github-actions bot added Template : admin Relates to admin template Component: Eav Relates to Mage_Eav Component: Adminhtml Relates to Mage_Adminhtml labels Sep 22, 2024
@sreichel
Copy link
Contributor Author

@empiricompany ... maybe another improvement ... take the given color-string and automatically add the swatch-color.

https://stackoverflow.com/questions/48484767/javascript-check-if-string-is-valid-css-color

@addison74
Copy link
Contributor

Only one warning remains in the Chromium browsers console.

That delete button should be 21px height, to keep the same proportion with similar buttons (e.g. the ones in Product Edit > Custom Options). Even the [ x Delete] button at the end of the row is 21px.

@addison74
Copy link
Contributor

If you solve the warning it will be perfect.

@sreichel
Copy link
Contributor Author

Nothing is perfect :P

I tried, but its not worth the time atm. Sorry.

@sreichel
Copy link
Contributor Author

sreichel commented Oct 2, 2024

@empiricompany can you please check this? Re-used your code, only change template for legacy theme and added default value for swatch (to get rid of the browser errors)

@sreichel sreichel requested a review from kiatng October 13, 2024 08:49
@sreichel sreichel merged commit 239dbcb into OpenMage:main Oct 14, 2024
1 check passed
@sreichel sreichel deleted the fix-4217 branch October 14, 2024 02:59
fballiano added a commit to MahoCommerce/maho that referenced this pull request Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Adminhtml Relates to Mage_Adminhtml Component: Eav Relates to Mage_Eav Template : admin Relates to admin template
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lots of warning in the browser console related to swatches
3 participants