Skip to content
Draft
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
15 changes: 5 additions & 10 deletions src/components/combo/themes/combo.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
text-overflow: ellipsis;
cursor: pointer;
}

::part(helper-text) {
@include type-style('caption');
@include line-clamp(2, true, true);
}
}

:host(:not([single-select])) {
Expand All @@ -29,16 +34,6 @@
}
}

[part='helper-text'] {
line-height: 1;

::slotted([slot='helper-text']) {
@include type-style('caption');

line-height: inherit;
}
}

[part='clear-icon'],
[part='toggle-icon'],
[part~='case-icon'] {
Expand Down
2 changes: 0 additions & 2 deletions src/components/combo/themes/shared/combo.fluent.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ $dropdown-theme: dropdown-theme.$fluent;
--combo-size: var(--component-size);

::part(helper-text) {
@include type-style('caption');

margin-block-start: pad-block(rem(5px));
grid-auto-rows: minmax(rem(18px), auto);
}
Expand Down
2 changes: 0 additions & 2 deletions src/components/combo/themes/shared/combo.indigo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ $dropdown-theme: dropdown-theme.$indigo;
}

::part(helper-text) {
@include type-style('caption');

margin-block-start: pad-block(rem(4px));
grid-auto-rows: minmax(rem(15px), auto);
}
Expand Down
4 changes: 1 addition & 3 deletions src/components/combo/themes/shared/combo.material.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ $dropdown-theme: dropdown-theme.$material;
--combo-size: var(--component-size);

::part(helper-text) {
@include type-style('caption');

margin-block-start: pad-block(rem(4px));
grid-auto-rows: minmax(rem(18px), auto);
padding-inline: pad-inline(rem(14px), rem(16px), rem(18px));
padding-inline: pad-inline(rem(12px), rem(14px), rem(16px));
}

::slotted([slot='prefix']),
Expand Down
7 changes: 6 additions & 1 deletion src/components/date-picker/themes/date-picker.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}

::part(helper-text) {
@include type-style('caption');
@include line-clamp(2, true, true);
}
}

:host([required]) {
Expand All @@ -31,7 +36,7 @@
}

[part='label'] {
display: inline-block;
display: block;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ $theme: $bootstrap;
::part(helper-text) {
@include type-style('body-2');

color: var-get($theme, 'helper-text-color');
grid-auto-rows: minmax(rem(20px), auto);
padding-inline-start: 0;
margin-block-start: pad-block(rem(4px));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,9 @@ $input-theme: input-theme.$material;
}

::part(helper-text) {
@include type-style('caption');

color: var-get($theme, 'helper-text-color');
grid-auto-rows: minmax(rem(18px), auto);
margin-block-start: pad-block(rem(4px));
padding-inline: pad-inline(rem(14px), rem(16px), rem(18px));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@ $theme: $fluent;
}

::part(helper-text) {
@include type-style('caption');

color: var-get($theme, 'helper-text-color');
grid-auto-rows: minmax(rem(18px), auto);
margin-block-start: pad-block(rem(5px));
padding-inline-start: 0;
}
}

Expand Down
10 changes: 6 additions & 4 deletions src/components/date-picker/themes/shared/date-picker.indigo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ $input-theme: input-theme.$indigo;

:host {
--calendar-border-color: #{$indigo-calendar-border-color};
--input-icon: #{sizable(rem(14px), rem(16px), rem(16px))};

igc-icon,
::slotted(igc-icon) {
--size: var(--input-icon) !important;
}

igc-dialog[open]::part(base) {
border-radius: rem(6px);
Expand All @@ -19,11 +25,7 @@ $input-theme: input-theme.$indigo;
}

::part(helper-text) {
@include type-style('caption');

color: var-get($theme, 'helper-text-color');
grid-auto-rows: minmax(rem(15px), auto);
padding-inline-start: 0;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

$theme: $material;

:host {
::part(helper-text) {
padding-inline: pad-inline(rem(12px), rem(14px), rem(16px));
}
}

:host([outlined][readonly]:hover) {
igc-date-time-input::part(start),
igc-date-time-input::part(end),
Expand Down
5 changes: 5 additions & 0 deletions src/components/date-range-picker/date-range-picker.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}

::part(helper-text) {
@include type-style('caption');
@include line-clamp(2, true, true);
}
}

:host([required]) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ $theme: $bootstrap;
::part(helper-text) {
@include type-style('body-2');

color: var-get($theme, 'helper-text-color');
grid-auto-rows: minmax(rem(20px), auto);
padding-inline-start: 0;
margin-block-start: pad-block(rem(4px));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,9 @@ $theme: $material;
}

::part(helper-text) {
@include type-style('caption');

color: var-get($theme, 'helper-text-color');
grid-auto-rows: minmax(rem(18px), auto);
margin-block-start: pad-block(rem(4px));
padding-inline: pad-inline(rem(14px), rem(16px), rem(18px));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@ $theme: $fluent;
}

::part(helper-text) {
@include type-style('caption');

color: var-get($theme, 'helper-text-color');
grid-auto-rows: minmax(rem(18px), auto);
margin-block-start: pad-block(rem(5px));
padding-inline-start: 0;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ $theme: $indigo;

:host {
--calendar-border-color: #{$indigo-calendar-border-color};
--input-icon: #{sizable(rem(14px), rem(16px), rem(16px))};

igc-icon,
::slotted(igc-icon) {
--size: var(--input-icon) !important;
}

igc-dialog[open]::part(base) {
border-radius: rem(6px);
Expand All @@ -17,11 +23,7 @@ $theme: $indigo;
}

::part(helper-text) {
@include type-style('caption');

color: var-get($theme, 'helper-text-color');
grid-auto-rows: minmax(rem(15px), auto);
padding-inline-start: 0;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

$theme: $material;

:host {
::part(helper-text) {
padding-inline: pad-inline(rem(12px), rem(14px), rem(16px));
}
}

:host(:not(:focus-within)[outlined][readonly]:hover) {
igc-input::part(start),
igc-input::part(end),
Expand Down
5 changes: 5 additions & 0 deletions src/components/input/themes/input.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
display: block;
font-family: var(--ig-font-family);
outline-style: none;

::part(helper-text) {
@include type-style('caption');
@include line-clamp(2, true, true);
}
}

::slotted(igc-icon) {
Expand Down
6 changes: 2 additions & 4 deletions src/components/input/themes/shared/input.bootstrap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ $theme: $bootstrap;
--font: #{sizable(rem(14px), rem(16px), rem(20px))};
--input-border-color: #{var-get($theme, 'border-color')};
--input-height: #{var-get($theme, 'size')};
--affix-padding: #{pad-inline(rem(8px), rem(12px), rem(14px))};
--affix-padding: #{pad-inline(rem(8px), rem(10px), rem(14px))};

::part(helper-text) {
@include type-style('body-2');

color: var-get($theme, 'helper-text-color');
grid-auto-rows: minmax(rem(20px), auto);
margin-block-start: rem(4px);
}

[part='prefix'] {
Expand All @@ -42,7 +40,7 @@ $theme: $bootstrap;
@include type-style('body-1');

border-radius: var-get($theme, 'border-border-radius');
padding-inline: pad-inline(8px, 12px, 16px);
padding-inline: pad-inline(8px, 10px, 14px);
padding-block: pad-block(4px, 6px, 8px);
color: var-get($theme, 'idle-text-color');
background: transparent;
Expand Down
7 changes: 7 additions & 0 deletions src/components/input/themes/shared/input.common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ $theme: $base;
color: var-get($theme, 'placeholder-color');
}

:host {
::part(helper-text) {
color: var-get($theme, 'helper-text-color');
margin-block-start: rem(4px);
}
}

:host(:focus-within),
:host(:not([readonly],[disabled]):hover) {
[part~='input']::placeholder {
Expand Down
5 changes: 1 addition & 4 deletions src/components/input/themes/shared/input.fluent.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $theme: $fluent;
--input-size: var(--component-size);
--helper-text-top-spacer: rem(5px);
--input-border-size: #{rem(1px)};
--affix-padding: #{pad-inline(rem(8px), rem(12px), rem(16px))};
--affix-padding: #{pad-inline(rem(8px), rem(10px), rem(14px))};

[part='prefix'],
[part='suffix'] {
Expand All @@ -22,9 +22,6 @@ $theme: $fluent;
}

::part(helper-text) {
@include type-style('caption');

color: var-get($theme, 'helper-text-color');
margin-block-start: rem(5px);
grid-auto-rows: minmax(rem(18px), auto);
}
Expand Down
6 changes: 1 addition & 5 deletions src/components/input/themes/shared/input.indigo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,14 @@ $transition-duration: .25s;
:host {
--component-size: var(--ig-size, #{var-get($theme, 'default-size')});
--input-size: var(--component-size);
--input-icon: #{sizable(rem(14px), rem(16px), rem(18px))};
--input-icon: #{sizable(rem(14px), rem(16px), rem(16px))};
--affix-padding: #{pad-inline(rem(2px), rem(4px), rem(6px))};

::slotted(igc-icon) {
--size: var(--input-icon) !important;
}

::part(helper-text) {
@include type-style('caption');

color: var-get($theme, 'helper-text-color');
margin-block-start: pad-block(rem(4px));
grid-auto-rows: minmax(rem(15px), auto);
}

Expand Down
8 changes: 2 additions & 6 deletions src/components/input/themes/shared/input.material.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,8 @@ $fs: rem(16px) !default;
}

::part(helper-text) {
@include type-style('caption');

color: var-get($theme, 'helper-text-color');
margin-block-start: rem(4px);
grid-auto-rows: minmax(rem(18px), auto);
padding-inline: pad-inline(rem(14px), rem(16px), rem(18px));
padding-inline: pad-inline(rem(12px), rem(14px), rem(16px));
}
}

Expand Down Expand Up @@ -131,7 +127,7 @@ input:placeholder-shown + [part='notch'] [part='label'],
[part='start'],
[part='end'] {
display: flex;
min-width: sizable(rem(10px), rem(12px), rem(14px));
min-width: sizable(rem(8px), rem(10px), rem(12px));
height: var(--size);
overflow: hidden;
}
Expand Down
5 changes: 5 additions & 0 deletions src/components/select/themes/select.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

:host {
display: block;

::part(helper-text) {
@include type-style('caption');
@include line-clamp(2, true, true);
}
}

[role='combobox'] {
Expand Down
2 changes: 0 additions & 2 deletions src/components/select/themes/shared/select.fluent.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ $input-theme: input-theme.$fluent;
--dropdown-size: var(--component-size);

::part(helper-text) {
@include type-style('caption');

color: var-get($theme, 'helper-text-color');
margin-block-start: pad-block(rem(5px));
grid-auto-rows: minmax(rem(18px), auto);
Expand Down
2 changes: 0 additions & 2 deletions src/components/select/themes/shared/select.indigo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ $input-theme: input-theme.$indigo;
--input-icon: #{sizable(rem(14px), rem(16px), rem(18px))};

::part(helper-text) {
@include type-style('caption');

margin-block-start: pad-block(rem(4px));
grid-auto-rows: minmax(rem(15px), auto);
}
Expand Down
4 changes: 1 addition & 3 deletions src/components/select/themes/shared/select.material.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ $active-border-width: rem(2px) !default;
--dropdown-size: var(--component-size);

::part(helper-text) {
@include type-style('caption');

margin-block-start: pad-block(rem(4px));
padding-inline: pad-inline(rem(14px), rem(16px), rem(18px));
padding-inline: pad-inline(rem(12px), rem(14px), rem(16px));
grid-auto-rows: minmax(rem(18px), auto);
}
}
Expand Down
Loading