facebook / lexical

Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.
https://lexical.dev
MIT License
17.37k stars 1.43k forks source link

Bug: Links don't follow Link style if text formatting is applied #5893

Open ivailop7 opened 2 weeks ago

ivailop7 commented 2 weeks ago

Lexical version: 0.14.3

Steps To Reproduce

Type any text, add a link, select the text and the link, change the color to 'red'. The link also changes color, rather than keep the 'link' styling defined in the theme object. Reason is, the 'span' inside the anchor tag takes the applied color and overrides the link style CSS.

Expected behaviour

Despite the applied styling, for the link to keep the defined link theme style.