[AAE-49015] - Removing mat-selectors from widgets

This commit is contained in:
VitoAlbano
2026-08-03 13:13:49 +01:00
parent 945bc7a591
commit 433fa182f8
4 changed files with 14 additions and 10 deletions
@@ -1,6 +1,16 @@
@use '@angular/material' as mat;
@use '../../../styles/mat-selectors' as ms; @use '../../../styles/mat-selectors' as ms;
.adf-card-view-selectitem { .adf-card-view-selectitem {
// Hide the filled form-field line-ripple (resting + focus) via the public token API
// instead of overriding the internal `.mdc-line-ripple` element.
@include mat.form-field-overrides(
(
filled-active-indicator-height: 0,
filled-focus-active-indicator-height: 0
)
);
.adf-property-value { .adf-property-value {
width: 100%; width: 100%;
} }
@@ -47,10 +57,6 @@
padding: 6px 0; padding: 6px 0;
} }
#{ms.$mat-line-ripple} {
display: none;
}
.adf-property-readonly-value { .adf-property-readonly-value {
color: var(--mat-sys-on-surface); color: var(--mat-sys-on-surface);
} }
@@ -1,5 +1,4 @@
/* stylelint-disable selector-class-pattern */ /* stylelint-disable selector-class-pattern */
@use '../../../../styles/mat-selectors' as ms;
@use '../../../../styles/mixins' as mixins; @use '../../../../styles/mixins' as mixins;
.adf { .adf {
@@ -17,10 +16,6 @@
} }
&-amount-widget__input { &-amount-widget__input {
#{ms.$mat-focused} {
transition: none;
}
.adf-input { .adf-input {
margin-top: 3px; margin-top: 3px;
} }
@@ -31,6 +31,10 @@ adf-layout-container {
} }
/* stylelint-disable selector-class-pattern, declaration-no-important */ /* stylelint-disable selector-class-pattern, declaration-no-important */
// Neutralize Material's built-in sidenav content push (margin/transform + 400ms transition) so
// ADF's own width/margin animation (sidenavAnimationState/contentAnimationState in the template)
// is the sole driver. No ADF-owned hook exists on Material's generated .mat-drawer-content, and
// there is no sidenav token/@Input to disable this behavior — keep the internal selectors.
#{ms.$mat-sidenav-content}, #{ms.$mat-sidenav-content},
#{ms.$mat-drawer-transition} #{ms.$mat-drawer-content} { #{ms.$mat-drawer-transition} #{ms.$mat-drawer-content} {
margin-left: 0 !important; margin-left: 0 !important;
@@ -1,5 +1,4 @@
$mat-icon: '.mat-icon'; $mat-icon: '.mat-icon';
$mat-focused: '.mat-focused';
$mat-line: '.mat-line'; $mat-line: '.mat-line';
$mat-tab-label: '.mat-mdc-tab'; $mat-tab-label: '.mat-mdc-tab';
$mat-tab-label-text: '.mdc-tab__text-label'; $mat-tab-label-text: '.mdc-tab__text-label';