Skip to content

Commit

Permalink
chore: rollback InputCardGroup fix and implement a simpler one (#9141)
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea authored Sep 24, 2024
1 parent c816d49 commit 702803c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export interface TuiCard {
host: {
'data-size': 'l',
'(mousedown)': 'onMouseDown($event)',
'(scroll.silent)': '$event.target.scrollLeft = 0',
},
})
export class TuiInputCardGroup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
inline-size: @width-full;
border-radius: var(--tui-radius-l);
overflow: hidden;
isolation: isolate;

:host-context(tui-root._mobile) {
inline-size: @width-mobile;
Expand All @@ -39,28 +38,16 @@
block-size: 100%;

&_cvc {
inline-size: 50%;
margin-left: @offset-full;
transform: translate3d(200%, 0, 0);
transform: translate3d(100%, 0, 0);

:host-context(tui-root._mobile) & {
margin-left: @offset-small;
}
}

&_expire {
inline-size: 50%;
transform: translate3d(@wrapper-offset-full, 0, 0);

:host-context(tui-root._mobile) & {
transform: translate3d(@wrapper-offset-small, 0, 0);
}

.t-label,
.t-input {
margin-inline-start: 0;
padding-inline-start: 100%;
}
transform: translate3d(100%, 0, 0);
}

&_active {
Expand All @@ -69,13 +56,6 @@
:host-context(tui-root._mobile) & {
transform: translate3d(@wrapper-offset-small, 0, 0);
}

&.t-wrapper_expire {
.t-label,
.t-input {
padding-inline-start: var(--tui-padding-l);
}
}
}
}

Expand Down Expand Up @@ -125,7 +105,6 @@

.t-input {
.fullsize();
.transition(padding);

border: 0;
margin: 0;
Expand All @@ -143,9 +122,7 @@
&:-webkit-autofill {
-webkit-text-fill-color: var(--tui-text-primary) !important;
caret-color: var(--tui-text-primary) !important;
transition:
background-color 600000s 0s,
padding var(--tui-duration) ease-in-out;
transition: background-color 600000s 0s;
}

&&&_card {
Expand Down Expand Up @@ -174,10 +151,6 @@
background: transparent !important;
pointer-events: none !important;
}

&:focus {
z-index: 1;
}
}

&_inert {
Expand Down Expand Up @@ -235,7 +208,3 @@
.t-ghost {
visibility: hidden;
}

tui-icon {
z-index: 1;
}
1 change: 0 additions & 1 deletion projects/core/styles/components/icons.less
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
font-size: 1.5rem;
flex-shrink: 0;
background: currentColor;
box-sizing: border-box;
mask: var(--t-icon-start) no-repeat center/contain;
}

Expand Down
1 change: 1 addition & 0 deletions projects/core/styles/components/link.less
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
vertical-align: super;
font-size: 0;
line-height: 0;
box-sizing: border-box;
}

.appearance-focus({
Expand Down

0 comments on commit 702803c

Please sign in to comment.