Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Documentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ Documentation for integrating and customizing the Adobe Experience Platform Bran
- [Implementation Guide](implementation-guide.md) - Learn how to integrate Brand Concierge into your Android app
- [Data handoff](implementation-guide.md#data-handoff) - Send application data to Brand Concierge without a chat message
- [Style Guide](style-guide.md) - Complete reference for theming and customization options
- [Release notes](release-notes.md) - Changes and compatibility considerations
24 changes: 24 additions & 0 deletions Documentation/release-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Release notes

## Unreleased

### Message typography

Added optional message body size/weight and inline link weight/underline theme
overrides. Defaults preserve existing behavior. Invalid CSS sizes and weights

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LOW] "Defaults preserve existing behavior" undersells one visible change. --line-height-body previously never reached bot markdown responses, because toSpanStyle() drops lineHeight. It now does, via ParagraphStyle. Every bundled sample theme sets it (1.5–1.75), and most customer themes probably do too, so bot response spacing will change on upgrade. This matches iOS, which already applies the multiplier to agent messages, but it's worth stating explicitly as a behavior change so integrators expect it.

are ignored with a warning, including programmatic typography supplied to
`ConciergeTheme`. Link overrides also apply in lists and blockquotes;
Markdown-bold links retain at least bold weight. Explicit body line height is
preserved through response paragraph rendering; omitted line height retains
existing response spacing. Pixel line heights (for example `"24px"`) are absolute
scaled sizes rather than multipliers. Body paragraph line height no longer
overrides headings or fenced code, including nested blocks.
Response paragraphs and list items also supply their resolved body font size to
Compose so explicit line heights scale consistently at accessibility font sizes.

**Binary compatibility:** Adding parameters to the public `ConciergeTypography`
Kotlin data class, including `lineHeightPx` for absolute line height, changes its
constructor and generated `copy` signatures.
Default parameter values preserve ordinary source calls that omit the new
parameters, but do not preserve binary compatibility. Applications and libraries
compiled against the previous class must be recompiled when upgrading.
42 changes: 40 additions & 2 deletions Documentation/style-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,41 @@ Visual styling using CSS-like variable names. All properties in the `theme` obje
| CSS Variable | Kotlin Property | Type | Default | Description |
|--------------|-----------------|------|---------|-------------|
| `--font-family` | `typography.fontFamily` | `String` | `null` (system font) | Font family name |
| `--line-height-body` | `typography.lineHeight` | `Double` | `1.0` | Line height multiplier |
| `--line-height-body` | `typography.lineHeight` / `typography.lineHeightPx` | `Double` | `null` (existing layout defaults) | Unitless multiplier (`"1.5"`) or absolute Android scaled size (`"24px"` maps to 24sp) |
| `--message-font-size` | `typography.fontSize` | `Double` | `null` (Material default) | Message body text size (px); positive and finite when converted to Compose's float size |
| `--message-font-weight` | `typography.fontWeight` | `Int` | `null` (Material default) | Message body text weight (`1`–`1000`, `normal`, `bold`, `lighter`, `bolder`) |
| `--message-concierge-link-font-weight` | `typography.linkFontWeight` | `Int?` | `null` (inherits body weight) | Inline hyperlink text weight in concierge messages; same valid range/names as body weight |
| `--message-concierge-link-underline` | `typography.linkUnderline` | `Boolean` | `true` | Whether inline hyperlinks are underlined (WCAG 1.4.1) |

Body size and weight apply to user and concierge message bodies, and to the privacy
notice that shares the body style. Link overrides apply to inline concierge response
links, including links inside lists and blockquotes, not Sources rows or other UI
links. Markdown headings and code retain their existing specialized styling.
CSS theme values must be
strings (for example `"--message-concierge-link-underline": "false"`).
Malformed or out-of-range sizes and weights are ignored with a warning; existing
values/defaults are preserved. Markdown-bold links remain at least weight `700`,
even when the configured link weight is lower. Italic links retain italics.
Programmatic `ConciergeTypography` values receive the same size/weight validation
when supplied to `ConciergeTheme`; invalid values fall back to the text style
defaults. An explicit `--line-height-body` is retained as paragraph styling in
concierge responses, including list items. Omitting it preserves existing response
line spacing. For example, `"24px"` remains 24sp when the body font size changes,
whereas `"1.5"` scales with that font size. Headings and fenced code blocks retain
their existing paragraph spacing, including when nested in a list or blockquote.
Inline code remains part of its surrounding body paragraph.
Response text and list items use the resolved body font size as their base font
size so Compose's accessibility font scaling resolves paragraph line height
consistently with Material text. Body line height remains paragraph-scoped and is
not reapplied globally to headings or fenced code.
Programmatic themes can set `lineHeightPx` for an absolute size or `lineHeight`
for a multiplier; if both are set, `lineHeightPx` takes precedence. Invalid line
heights are ignored with a warning.

Underlining helps distinguish links but does not replace text/background contrast.
Check the actual message background: WCAG AA requires at least 4.5:1 for normal
text, or 3:1 for large text. Heavier weight alone does not improve the contrast
ratio; the lower threshold applies only when text meets WCAG's large-text criteria.

### Colors - Primary

Expand Down Expand Up @@ -1550,7 +1584,11 @@ This section documents which properties are fully implemented, partially impleme
| CSS Variable | Status | Notes | Used In |
|--------------|--------|-------|---------|
| `--font-family` | ⚠️ | Parsed but not implemented | - |
| `--line-height-body` | ✅ | Body text line height | All text components via `ConciergeStyles.withThemeTypography` |
| `--line-height-body` | ✅ | Explicit message body line height | `ConciergeStyles.withThemeTypography`; response paragraph styling via `MarkdownParser` |
| `--message-font-size` | ✅ | Message body text size | `ConciergeStyles.withThemeTypography` |
| `--message-font-weight` | ✅ | Message body text weight | `ConciergeStyles.withThemeTypography` |
| `--message-concierge-link-font-weight` | ✅ | Inline link text weight | `MarkdownRenderer` link renderers |
| `--message-concierge-link-underline` | ✅ | Inline link underline | `MarkdownRenderer` link renderers |
| `--input-font-size` | ✅ | Input field text size | `ChatTextField` |
| `--citations-desktop-button-font-size` | ✅ | Citation pill text size | `CircularCitation` |
| `--disclaimer-font-size` | ✅ | Disclaimer text size | `ConciergeDisclaimer` (DisclaimerStyle) |
Expand Down
Loading
Loading