Skip to content

Commit

Permalink
fix: Typography copyable icon not aligned (#51066)
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 authored Sep 29, 2024
1 parent 80b6157 commit c063168
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 65 deletions.
2 changes: 1 addition & 1 deletion components/_util/transButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const inlineStyle: React.CSSProperties = {
background: 'transparent',
padding: 0,
lineHeight: 'inherit',
display: 'inline-flex',
display: 'inline-block',
};

const TransButton = React.forwardRef<HTMLDivElement, TransButtonProps>((props, ref) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
tabindex="0"
>
<span
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8282,7 +8282,7 @@ Array [
aria-label="Remove"
class="ant-transfer-list-content-item-remove"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -8319,7 +8319,7 @@ Array [
aria-label="Remove"
class="ant-transfer-list-content-item-remove"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -8356,7 +8356,7 @@ Array [
aria-label="Remove"
class="ant-transfer-list-content-item-remove"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -8393,7 +8393,7 @@ Array [
aria-label="Remove"
class="ant-transfer-list-content-item-remove"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -8430,7 +8430,7 @@ Array [
aria-label="Remove"
class="ant-transfer-list-content-item-remove"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -8467,7 +8467,7 @@ Array [
aria-label="Remove"
class="ant-transfer-list-content-item-remove"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down
12 changes: 6 additions & 6 deletions components/transfer/__tests__/__snapshots__/demo.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5361,7 +5361,7 @@ Array [
aria-label="Remove"
class="ant-transfer-list-content-item-remove"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
tabindex="0"
>
<span
Expand Down Expand Up @@ -5398,7 +5398,7 @@ Array [
aria-label="Remove"
class="ant-transfer-list-content-item-remove"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
tabindex="0"
>
<span
Expand Down Expand Up @@ -5435,7 +5435,7 @@ Array [
aria-label="Remove"
class="ant-transfer-list-content-item-remove"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
tabindex="0"
>
<span
Expand Down Expand Up @@ -5472,7 +5472,7 @@ Array [
aria-label="Remove"
class="ant-transfer-list-content-item-remove"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
tabindex="0"
>
<span
Expand Down Expand Up @@ -5509,7 +5509,7 @@ Array [
aria-label="Remove"
class="ant-transfer-list-content-item-remove"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
tabindex="0"
>
<span
Expand Down Expand Up @@ -5546,7 +5546,7 @@ Array [
aria-label="Remove"
class="ant-transfer-list-content-item-remove"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
tabindex="0"
>
<span
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -495,7 +495,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -546,7 +546,7 @@ Array [
aria-label="click here"
class="ant-typography-copy"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -597,7 +597,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -646,7 +646,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -696,7 +696,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy ant-typography-copy-icon-only"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -754,7 +754,7 @@ Array [
aria-label="Edit"
class="ant-typography-edit"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -806,7 +806,7 @@ Array [
aria-label="Edit"
class="ant-typography-edit"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -857,7 +857,7 @@ Array [
aria-label="click to edit text"
class="ant-typography-edit"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -971,7 +971,7 @@ Array [
aria-label="click to edit text"
class="ant-typography-edit"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -1022,7 +1022,7 @@ Array [
aria-label="click to edit text"
class="ant-typography-edit"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -1073,7 +1073,7 @@ Array [
aria-label="click to edit text"
class="ant-typography-edit"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -1124,7 +1124,7 @@ Array [
aria-label="Edit"
class="ant-typography-edit"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -1173,7 +1173,7 @@ Array [
aria-label="Edit"
class="ant-typography-edit"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -1225,7 +1225,7 @@ Array [
aria-label="Edit"
class="ant-typography-edit"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -1277,7 +1277,7 @@ Array [
aria-label="Edit"
class="ant-typography-edit"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -1329,7 +1329,7 @@ Array [
aria-label="Edit"
class="ant-typography-edit"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -1381,7 +1381,7 @@ Array [
aria-label="Edit"
class="ant-typography-edit"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -1433,7 +1433,7 @@ Array [
aria-label="Edit"
class="ant-typography-edit"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -1656,7 +1656,7 @@ exports[`renders components/typography/demo/ellipsis-controlled.tsx extend conte
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -1859,7 +1859,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -1913,7 +1913,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -1967,7 +1967,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -2021,7 +2021,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down Expand Up @@ -2143,7 +2143,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
tabindex="0"
>
<span
Expand Down
Loading

0 comments on commit c063168

Please sign in to comment.