Skip to content

Commit 4a4216a

Browse files
committed
feat: add images for notice in styles bar
1 parent 8afcb85 commit 4a4216a

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

docs/02-Live Preview/03-styles-bar.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,16 @@ Phoenix Code shows a notice telling you where the value really lives, for exampl
237237
- **Remove**: deletes the style at that place, the same as the menu action above. This button only shows up when the style can be deleted on its own.
238238
- **Reset**: adds `revert` on this element only.
239239

240+
![Notice shown when a field will not clear](../images/pro/styles-bar-field-not-clearing.png "The notice below the Styles Bar, with Remove and Reset buttons")
241+
240242
## When a Change Is Overridden
241243

242244
Sometimes a more specific CSS rule wins over the rule you are editing, so your change has no visible effect. In that case, Phoenix Code automatically adds `!important` to your change to make it take effect.
243245

244246
If the change is still overridden even after the `!important` property, Phoenix Code shows a notification with an **Apply anyway** button, which applies the style directly on the element so it always takes effect.
245247

248+
![Notice shown when a change is overridden](../images/pro/styles-bar-overridden.png "The overridden notice below the Styles Bar, with the Apply anyway button")
249+
246250
Read more about [CSS specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Cascade/Specificity) on MDN.
247251

248252
## Reset and Undo
43.7 KB
Loading
42.8 KB
Loading

0 commit comments

Comments
 (0)