Skip to content

Commit 082fbe2

Browse files
agorischekCopilot
andauthored
Format host-core.md and check-styles.mjs (#332)
main's format:check fails on these two files since #316. Co-authored-by: agorischek <agorischek@users.noreply.github.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 71c3d06 commit 082fbe2

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

‎docs/guides/host-core.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ or `--pj-pane-band-inset-start` and `--pj-pane-band-inset-end` separately (set
156156
them on `.ph-pane-label` or `.ph-swipe-label` to inset one side). Use `paneEdge`
157157
and these custom properties to restyle the stage rather than overriding its
158158
inline styles with `!important`, which `npm run check:styles` rejects in host
159-
rules targeting `.ph-` classes. Set `paneLabels: 'hidden'` when your host
160-
names revisions elsewhere; either way, the labels still name each pane for
161-
assistive technology.
159+
rules targeting `.ph-` classes. Set `paneLabels: 'hidden'` when your host names
160+
revisions elsewhere; either way, the labels still name each pane for assistive
161+
technology.
162162

163163
In single-frame modes (animated, diff), `utility` places controls in a floating
164164
bar over the stage's top edge—inset from the sides and sized to its content—

‎tools/scripts/check-styles.mjs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import stylelint from 'stylelint'
1010
export const ruleName = 'projections/no-important-over-stage'
1111

1212
export const messages = stylelint.utils.ruleMessages(ruleName, {
13-
rejected: (property, selector) =>
14-
`Unexpected !important on ${property} in ${selector}; use paneEdge or stage custom properties instead`,
13+
rejected: (property, selector) => `Unexpected !important on ${property} in ${selector}; use paneEdge or stage custom properties instead`,
1514
})
1615

1716
/** The selectors of `node` and every rule it is nested in, innermost first. */

0 commit comments

Comments
 (0)