gambitph / Stackable

Page Builder Blocks for WordPress. An Amazing Block Library for the new WordPress Block Editor (Gutenberg).
https://wpstackable.com
GNU General Public License v3.0
326 stars 62 forks source link

Blocks with text - Text Gradient Color not appearing if I type random characters #3305

Open andeng1106 opened 2 weeks ago

andeng1106 commented 2 weeks ago

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. Add a new page
  2. Add any block mentioned in the description
  3. Type "Stackable typinffg random words 23981382938"
  4. Change Text Color to a Gradient Color
  5. See that the "typinffg" still doesn't have the color

Expected behavior

Screenshots

https://github.com/user-attachments/assets/edbbcc1c-9ba0-4a40-8827-4372d60d6b06

bfintal commented 1 week ago

Looks like a possible fix for this is to make sure that the -webkit-text-fill-color is also applied in ::spelling-error. You can use this to test:

h2.stk--is-gradient::spelling-error {
    -webkit-text-fill-color: #0000;
}