From 54d5fa5ae45d4183fbf7871ed509cc2b61d4be45 Mon Sep 17 00:00:00 2001 From: Kratos2k7 Date: Thu, 21 May 2026 18:34:41 +0500 Subject: [PATCH] chore: add padding property to RichTextBackground for improved text rendering --- schemas/richtextproperties.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/schemas/richtextproperties.yaml b/schemas/richtextproperties.yaml index e7f620e..caa8773 100644 --- a/schemas/richtextproperties.yaml +++ b/schemas/richtextproperties.yaml @@ -224,6 +224,17 @@ RichTextBackground: type: boolean default: false example: true + padding: + description: | + Inner padding in pixels between the wrap pill edge and the rendered text. Only takes + effect when `wrap: true`. When omitted, the renderer applies a sensible default + proportional to the font size (approximately 12% of the active page font size on + rich-caption assets). Set to 0 for a pill that hugs the text exactly. Available on + rich-text and rich-caption assets only. + type: integer + minimum: 0 + maximum: 200 + example: 12 additionalProperties: false type: object