The Rotate effect UI does not accept to leave the background color blank (=transparent). Probably this was introduced in #2251223: ConfigurableImageEffectInterface should use ConfigurablePluginInterface and PluginFormInterface.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 2307053-7.patch | 1.72 KB | mondrake |
| #1 | 2307053-1-test-only.patch | 930 bytes | mondrake |
Comments
Comment #1
mondrakeTest + fix. Test only patch should fail, full patch pass.
Comment #3
fietserwin1 small thing in the patch:
I am not sure that we should repeat the whole help text in the error message. I find the existing message better (the user has filled in something, so probably wants to define a color).
And another small suggestion, related to this issue, as it is also in the add/edit rotate effect form UI:
On testing the add/edit rotate effect in the UI, I saw that the & deg ; html encoding was escaped. I would like to suggest to directly use the utf-8 character for degrees instead of the html escape sequence. The same for the twig template. So just add the lines below to the patch and that is solved as well:
I think this is easier and faster then a new separate issue.
Comment #4
mondrakeFine, let's just fix the bug here. Patch updated & rerolled.
This is due to double escaping introduced by #1825952: Turn on twig autoescape by default, it was working right before that being committed. See also #2297711: Fix HTML escaping due to Twig autoescape. We need to see if #1938910: Convert image theme tables to table #type would solve that, or open a new issue specifically for this. I wouldn't address that here.
Comment #5
fietserwinFollow-up: #2318297: Rotate effect: do not use html entity for 'degree' but its unicode character.
Comment #7
mondrakeRerolled after #2316533: Add getValue/setValue/hasValue and isValueEmpty to FormState
Comment #8
mondrakeBack to RTBC
Comment #9
mondrakeOps...
Comment #10
alexpottCommitted cdab062 and pushed to 8.0.x. Thanks!