Skip to content

fix(stylelint-plugin): allow more pseudo classes - #429

Open
Oleksandr Fediashov (layershifter) wants to merge 2 commits into
microsoft:mainfrom
layershifter:fix/style-lint-more-pseudo
Open

fix(stylelint-plugin): allow more pseudo classes#429
Oleksandr Fediashov (layershifter) wants to merge 2 commits into
microsoft:mainfrom
layershifter:fix/style-lint-more-pseudo

Conversation

@layershifter

@layershifter Oleksandr Fediashov (layershifter) commented Jul 3, 2025

Copy link
Copy Markdown
Member

This pull request addresses a bug in the @fluentui-contrib/stylelint-plugin package by expanding the list of allowed pseudo-classes in the combinator depth rule. The changes ensure better compatibility with modern CSS practices.

Bug Fix:

@layershifter
Oleksandr Fediashov (layershifter) marked this pull request as ready for review July 3, 2025 08:20
import { createRule } from '../../create-rule';
import { normalizeRuleName } from '../../normalize-rule-name';

const ALLOWED_PSEUDO_CLASSES = [':hover', ':active', ':focus', ':focus-within'];

@ling1726 ling1726 Jul 3, 2025

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.

could this be updated to a rule config to remove the dependency on a code release for users?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants