File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -389,12 +389,20 @@ Reference
389389 * - | **bgcolor **
390390 | Draws the color behind ``{text}``. This can be used to highlight text.
391391 Accepts same values as the ``color`` tag.
392+ By default, there is a slight padding which is controlled by the
393+ ``text_highlight_h_padding`` and ``text_highlight_v_padding`` theme items
394+ in the RichTextLabel node. Set padding to ``0`` to avoid potential overlapping
395+ issues when there are background colors on neighboring lines/columns.
392396
393397 - ``[bgcolor={code/name}]{text}[/bgcolor] ``
394398
395399 * - | **fgcolor **
396400 | Draws the color in front of ``{text}``. This can be used to "redact" text by using
397401 an opaque foreground color. Accepts same values as the ``color`` tag.
402+ By default, there is a slight padding which is controlled by the
403+ ``text_highlight_h_padding`` and ``text_highlight_v_padding`` theme items
404+ in the RichTextLabel node. Set padding to ``0`` to avoid potential overlapping
405+ issues when there are foreground colors on neighboring lines/columns.
398406
399407 - ``[fgcolor={code/name}]{text}[/fgcolor] ``
400408
You can’t perform that action at this time.
0 commit comments