Update extension styling requirements
This commit is contained in:
@@ -78,6 +78,12 @@ Before adding local styling, extension authors must:
|
|||||||
|
|
||||||
Custom styling is the exception, not the default.
|
Custom styling is the exception, not the default.
|
||||||
|
|
||||||
|
#### Text in extension panels, dialogs, and forms
|
||||||
|
|
||||||
|
Descriptions, practical examples, and field guidance in compact extension UI use `--isa-extension-font-size-sm`. Apply the shared class to the text itself, for example `<p class="isa-extension-help-text">{example}</p>`. Use `isa-extension-label` for field labels. Keep descriptions and their examples at the same size when the host text-size setting changes.
|
||||||
|
|
||||||
|
A plain paragraph can inherit the iframe body’s larger `--isa-extension-font-size-base`. The `isa-extension-muted` class sets only the color, so a paragraph using it alone can still appear as large as a content heading. When reviewing an extension, compare the computed size of an example with its surrounding description inside the iframe.
|
||||||
|
|
||||||
### 14.2 Required surface rules
|
### 14.2 Required surface rules
|
||||||
|
|
||||||
Use these host surface patterns where possible:
|
Use these host surface patterns where possible:
|
||||||
|
|||||||
Reference in New Issue
Block a user