@dextinity/agent-features 10.3.0 → 10.4.0-canary-20260902110159
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -170,11 +170,27 @@ Outlook calculates line-height using its own rules, causing unexpected vertical
|
|
|
170
170
|
|
|
171
171
|
### No CSS `background-image` in Outlook
|
|
172
172
|
|
|
173
|
-
Outlook ignores `background-image` entirely. Use a VML-based workaround for Outlook support, or provide a `background-color` fallback for graceful degradation. See [Bulletproof Backgrounds](https://www.backgrounds.cm/).
|
|
173
|
+
Classic Outlook ignores `background-image` entirely. Use a VML-based workaround for Outlook support, or provide a `background-color` fallback for graceful degradation. See [Bulletproof Backgrounds](https://www.backgrounds.cm/).
|
|
174
174
|
|
|
175
175
|
### No CSS `border-radius` in Outlook
|
|
176
176
|
|
|
177
|
-
Outlook ignores `border-radius` — rounded corners
|
|
177
|
+
Classic Outlook ignores `border-radius` entirely — rounded corners on buttons, containers, or any other element render as sharp rectangles.
|
|
178
|
+
|
|
179
|
+
`MjmlImage` and `HtmlImage` handle images for you, as long as `width` and `height` are given in pixels and `borderRadius` is a single pixel value or `"50%"`. Other values — a percentage width, `1em`, `16px 4px` — leave the image square in Outlook.
|
|
180
|
+
|
|
181
|
+
Everything else, buttons and containers included, needs a VML `v:roundrect` written by hand, inside a conditional comment. Give the shape a fixed pixel `width` and `height` — it cannot be fluid:
|
|
182
|
+
|
|
183
|
+
```html
|
|
184
|
+
<!--[if mso]>
|
|
185
|
+
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" arcsize="18%" stroked="f" style="width:200px;height:44px;">
|
|
186
|
+
<center>Button label</center>
|
|
187
|
+
</v:roundrect>
|
|
188
|
+
<![endif]-->
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Set `arcsize` to the corner radius divided by the shorter side, capped at `50%` — `8px` on a `44px`-high button gives `18%`. Do not take the value from the VML specification; it is twice what Outlook needs.
|
|
192
|
+
|
|
193
|
+
See the [Litmus VML button snippet](https://litmus.com/community/snippets/7-bulletproof-button-vml-approach).
|
|
178
194
|
|
|
179
195
|
---
|
|
180
196
|
|