Skip to content

Commit

Permalink
fix(Search): fix ios button animation (#7196)
Browse files Browse the repository at this point in the history
* fix(Search): fix ios button animation

* fix(Search): update screenshots
  • Loading branch information
EldarMuhamethanov authored and actions-user committed Jul 17, 2024
1 parent 8aaafaa commit 70f0c0e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/vkui/src/components/Search/Search.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -159,21 +159,20 @@

.Search__after {
flex: 0;
transform: translate(50%);
transform-origin: left;
min-inline-size: initial;
max-inline-size: min-content;
pointer-events: none;
transition:
flex 0.3s var(--vkui--animation_easing_platform),
transform 0.3s var(--vkui--animation_easing_platform);
transition-timing-function: var(--vkui--animation_easing_platform);
transition-duration: 0.3s;
transition-property: flex, margin-inline;
overflow: hidden;
margin-inline: 0;
}

.Search--focused .Search__after,
.Search--has-value .Search__after {
flex: 1;
transform: translate(0);
pointer-events: initial;
margin-inline: 4px calc(4px - var(--vkui--size_base_padding_horizontal--regular));
}
Expand Down

0 comments on commit 70f0c0e

Please sign in to comment.