Skip to content

Commit

Permalink
feat(legacy): support fieldset disable
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Oct 8, 2024
1 parent 1171fbc commit bd7e5f8
Show file tree
Hide file tree
Showing 24 changed files with 80 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
display: block;
isolation: isolate;
inline-size: 22.6rem;

:host-context(*:disabled) {
pointer-events: none;
}
}

.t-wrapper {
Expand Down
4 changes: 4 additions & 0 deletions projects/legacy/components/combo-box/combo-box.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
display: block;
border-radius: var(--tui-radius-m);
text-align: start;

:host-context(*:disabled) {
pointer-events: none;
}
}

.t-hosted {
Expand Down
4 changes: 4 additions & 0 deletions projects/legacy/components/input-color/input-color.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
display: block;
border-radius: var(--tui-radius-m);
text-align: start;

:host-context(*:disabled) {
pointer-events: none;
}
}

.t-wrapper {
Expand Down
4 changes: 4 additions & 0 deletions projects/legacy/components/input-copy/input-copy.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
display: block;
border-radius: var(--tui-radius-m);
text-align: start;

:host-context(*:disabled) {
pointer-events: none;
}
}

.t-icon {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
border-radius: var(--tui-radius-m);
text-align: start;

&._disabled {
&._disabled,
:host-context(*:disabled) {
pointer-events: none;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
display: block;
border-radius: var(--tui-radius-m);
text-align: start;

:host-context(*:disabled) {
pointer-events: none;
}
}

.t-hosted {
Expand Down
4 changes: 4 additions & 0 deletions projects/legacy/components/input-date/input-date.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
display: block;
border-radius: var(--tui-radius-m);
text-align: start;

:host-context(*:disabled) {
pointer-events: none;
}
}

.t-hosted {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
display: block;
border-radius: var(--tui-radius-m);
text-align: start;

:host-context(*:disabled) {
pointer-events: none;
}
}

.t-hosted {
Expand Down
4 changes: 4 additions & 0 deletions projects/legacy/components/input-month/input-month.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
display: block;
border-radius: var(--tui-radius-m);
text-align: start;

:host-context(*:disabled) {
pointer-events: none;
}
}

.t-hosted {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
display: flex;
border-radius: var(--tui-radius-m);
text-align: start;

:host-context(*:disabled) {
pointer-events: none;
}
}

.t-textfield {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
display: block;
border-radius: var(--tui-radius-m);
text-align: start;

:host-context(*:disabled) {
pointer-events: none;
}
}

.t-icon {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
:host {
display: block;

&._disabled {
&._disabled,
:host-context(*:disabled) {
pointer-events: none;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
border-radius: var(--tui-radius-m);
text-align: start;

&._disabled {
&._disabled,
:host-context(*:disabled) {
pointer-events: none;
}
}
Expand Down
4 changes: 4 additions & 0 deletions projects/legacy/components/input-range/input-range.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
:host {
display: block;
border-radius: var(--tui-radius-m);

:host-context(*:disabled) {
pointer-events: none;
}
}

.t-range {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
&[data-size='l'] {
--tui-radius: var(--tui-radius-l);
}

:host-context(*:disabled) {
pointer-events: none;
}
}

tui-input-number {
Expand Down
3 changes: 2 additions & 1 deletion projects/legacy/components/input-tag/input-tag.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
max-block-size: none;
}

&._disabled {
&._disabled,
:host-context(*:disabled) {
pointer-events: none;
}

Expand Down
3 changes: 2 additions & 1 deletion projects/legacy/components/input-time/input-time.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
border-radius: var(--tui-radius-m);
text-align: start;

&._disabled {
&._disabled,
:host-context(*:disabled) {
pointer-events: none;
}
}
Expand Down
4 changes: 4 additions & 0 deletions projects/legacy/components/input-year/input-year.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
display: block;
border-radius: var(--tui-radius-m);
text-align: start;

:host-context(*:disabled) {
pointer-events: none;
}
}

.t-container {
Expand Down
3 changes: 2 additions & 1 deletion projects/legacy/components/input/input.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
border-radius: var(--tui-radius-m);
text-align: start;

&._disabled {
&._disabled,
:host-context(*:disabled) {
pointer-events: none;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
display: block;
border-radius: var(--tui-radius-m);

&._disabled {
&._disabled,
:host-context(*:disabled) {
pointer-events: none;
}
}
Expand Down
4 changes: 4 additions & 0 deletions projects/legacy/components/select/select.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
cursor: default;
}
/* stylelint-enable */

:host-context(*:disabled) {
pointer-events: none;
}
}

.t-hosted {
Expand Down
3 changes: 2 additions & 1 deletion projects/legacy/components/tag/tag.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@
background: transparent !important;
}

&._disabled {
&._disabled,
:host-context(*:disabled) {
pointer-events: none;
opacity: var(--tui-disabled-opacity);
}
Expand Down
4 changes: 4 additions & 0 deletions projects/legacy/components/textarea/textarea.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
border-radius: var(--tui-radius-m);
color: var(--tui-text-primary);

:host-context(*:disabled) {
pointer-events: none;
}

&[data-size='s'] {
--tui-height: var(--tui-height-s);
--tui-textarea-height: 4.5625rem;
Expand Down
4 changes: 4 additions & 0 deletions projects/legacy/styles/mixins/textfield.less
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
font: var(--tui-font-text-m);
line-height: 1.25rem;
}

:host-context(*:disabled) {
pointer-events: none;
}
}

.textfield-content() {
Expand Down

0 comments on commit bd7e5f8

Please sign in to comment.