fix: Safari ellipsis (#49221)

* fix: Safari ellipsis

* test: update snapshot
This commit is contained in:
二货爱吃白萝卜 2024-06-04 19:14:12 +08:00 committed by GitHub
parent cc29902bb5
commit 145aa3f68d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 63 additions and 63 deletions

View File

@ -19,7 +19,7 @@ const inlineStyle: React.CSSProperties = {
background: 'transparent',
padding: 0,
lineHeight: 'inherit',
display: 'inline-block',
display: 'inline-flex',
};
const TransButton = React.forwardRef<HTMLDivElement, TransButtonProps>((props, ref) => {

View File

@ -722,7 +722,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span

View File

@ -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-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span

View File

@ -8270,7 +8270,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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -8307,7 +8307,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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -8344,7 +8344,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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -8381,7 +8381,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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -8418,7 +8418,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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -8455,7 +8455,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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span

View File

@ -5331,7 +5331,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-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -5368,7 +5368,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-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -5405,7 +5405,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-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -5442,7 +5442,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-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -5479,7 +5479,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-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -5516,7 +5516,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-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span

View File

@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -645,7 +645,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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -696,7 +696,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span
@ -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-block;"
style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-flex;"
tabindex="0"
>
<span

View File

@ -442,7 +442,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -474,7 +474,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -506,7 +506,7 @@ Array [
aria-label="click here"
class="ant-typography-copy"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -538,7 +538,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -569,7 +569,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy ant-typography-copy-icon-only"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -601,7 +601,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -638,7 +638,7 @@ Array [
aria-label="Edit"
class="ant-typography-edit"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -672,7 +672,7 @@ Array [
aria-label="Edit"
class="ant-typography-edit"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -704,7 +704,7 @@ Array [
aria-label="click to edit text"
class="ant-typography-edit"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -801,7 +801,7 @@ Array [
aria-label="click to edit text"
class="ant-typography-edit"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -833,7 +833,7 @@ Array [
aria-label="click to edit text"
class="ant-typography-edit"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -865,7 +865,7 @@ Array [
aria-label="click to edit text"
class="ant-typography-edit"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -897,7 +897,7 @@ Array [
aria-label="Edit"
class="ant-typography-edit"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -929,7 +929,7 @@ Array [
aria-label="Edit"
class="ant-typography-edit"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -962,7 +962,7 @@ Array [
aria-label="Edit"
class="ant-typography-edit"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -995,7 +995,7 @@ Array [
aria-label="Edit"
class="ant-typography-edit"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -1028,7 +1028,7 @@ Array [
aria-label="Edit"
class="ant-typography-edit"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -1061,7 +1061,7 @@ Array [
aria-label="Edit"
class="ant-typography-edit"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -1094,7 +1094,7 @@ Array [
aria-label="Edit"
class="ant-typography-edit"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -1237,7 +1237,7 @@ exports[`renders components/typography/demo/ellipsis-controlled.tsx correctly 1`
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -1401,7 +1401,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -1435,7 +1435,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -1469,7 +1469,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span
@ -1503,7 +1503,7 @@ Array [
aria-label="Copy"
class="ant-typography-copy"
role="button"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-block"
style="border:0;background:transparent;padding:0;line-height:inherit;display:inline-flex"
tabindex="0"
>
<span