Skip to content

Commit

Permalink
[ACS-8066] Style inputs for link rule dialog (#9773)
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksanderSklorz authored and VitoAlbano committed Jul 8, 2024
1 parent b1269bd commit dff377a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
class="adf-content-node-selector-content-input"
subscriptSizing="dynamic"
*ngIf="showSearch">
<mat-label>{{ 'NODE_SELECTOR.SEARCH' | translate }}</mat-label>
<input matInput
id="searchInput"
[formControl]="searchInput"
type="text"
[value]="searchTerm"
adf-auto-focus
[placeholder]="'NODE_SELECTOR.SEARCH' | translate"
data-automation-id="content-node-selector-search-input">

<mat-icon *ngIf="searchTerm.length > 0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,19 @@ h2.adf-search-results-label {
align-items: center;

#{$mat-form-field-infix} {
padding-top: 0;
padding-bottom: 0;
}
}
}

.adf-sites-dropdown-form-field {
&#{$mat-form-field-hide-placeholder} {
#{$mat-form-field-infix} {
padding-top: 0;
}
}
}

#{$mat-form-field-subscript-wrapper} {
height: 16px;
}
Expand All @@ -66,7 +73,7 @@ h2.adf-search-results-label {

&-input {
width: 100%;
margin: 16px 0;
margin-bottom: 8px;

.adf-content-node-selector-content-input-icon {
color: var(--adf-theme-foreground-icon-color-054);
Expand All @@ -80,6 +87,10 @@ h2.adf-search-results-label {
color: var(--adf-theme-foreground-base-color);
}
}

#{$mat-form-field-subscript-wrapper} {
display: none;
}
}

.adf-site-dropdown-container {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div id="site-dropdown-container" class="adf-site-dropdown-container">
<mat-form-field class="adf-sites-dropdown-form-field" appearance="fill" subscriptSizing="dynamic">
<mat-label>{{placeholder | translate}}</mat-label>
<mat-label>{{ 'NODE_SELECTOR.LOCATION' | translate }}</mat-label>
<mat-select
adf-infinite-select-scroll
(scrollEnd)="loadAllOnScroll()"
Expand All @@ -10,6 +10,7 @@
id="site-dropdown"
placeholder="{{placeholder | translate}}"
[(value)]="selected"
placeholder="{{placeholder | translate}}"
(selectionChange)="selectedSite($event)">
<mat-select-trigger class="adf-sites-dropdown-select-trigger">
{{ selected?.entry.title | translate}}
Expand Down

0 comments on commit dff377a

Please sign in to comment.