Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): fix unknown selector warnings in Angular 17+ #10162

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
6 changes: 3 additions & 3 deletions projects/core/styles/mixins/mixins.less
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@import 'browsers.less';

.interactive(@ruleset) {
// TODO switch to :is after Safari 14 support
&:-webkit-any(a, button, select, textarea, input, label) {
// TODO remove after dropping Safari 13 support
&:matches(a, button, select, textarea, input, label) {
@ruleset();
}

&:-moz-any(a, button, select, textarea, input, label) {
&:is(a, button, select, textarea, input, label) {
@ruleset();
}
}
Expand Down
6 changes: 3 additions & 3 deletions projects/core/styles/mixins/mixins.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@import 'browsers.scss';

@mixin interactive {
// TODO switch to :is after Safari 14 and FF 78 support
&:-webkit-any(a, button, select, textarea, input) {
// TODO remove after dropping Safari 13 support
&:matches(a, button, select, textarea, input) {
@content;
}

&:-moz-any(a, button, select, textarea, input) {
&:is(a, button, select, textarea, input) {
@content;
}
}
Expand Down
Loading