Skip to content

Commit 864f304

Browse files
LofiSuYumoImerkimteayonafc163
authored
Fix: Resolve dual scrollbar issue and flickering on initial load (#485)
* Fix: Resolve dual scrollbar issue and flickering on initial load * fix: add snapshot --------- Co-authored-by: 🏎️ Imer <[email protected]> Co-authored-by: Mickey <[email protected]> Co-authored-by: afc163 <[email protected]>
1 parent bb89f08 commit 864f304

File tree

9 files changed

+115
-106
lines changed

9 files changed

+115
-106
lines changed

components/attachments/__tests__/__snapshots__/demo-extend.test.ts.snap

+5-4
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,9 @@ exports[`renders components/attachments/demo/overflow.tsx extend context correct
741741
<div
742742
aria-label="segmented control"
743743
class="ant-segmented"
744-
role="listbox"
744+
role="radiogroup"
745745
style="margin-inline-end: auto;"
746+
tabindex="0"
746747
>
747748
<div
748749
class="ant-segmented-group"
@@ -753,12 +754,12 @@ exports[`renders components/attachments/demo/overflow.tsx extend context correct
753754
<input
754755
checked=""
755756
class="ant-segmented-item-input"
757+
name="test-id"
756758
type="radio"
757759
/>
758760
<div
759761
aria-selected="true"
760762
class="ant-segmented-item-label"
761-
role="option"
762763
title="Wrap"
763764
>
764765
Wrap
@@ -769,12 +770,12 @@ exports[`renders components/attachments/demo/overflow.tsx extend context correct
769770
>
770771
<input
771772
class="ant-segmented-item-input"
773+
name="test-id"
772774
type="radio"
773775
/>
774776
<div
775777
aria-selected="false"
776778
class="ant-segmented-item-label"
777-
role="option"
778779
title="Scroll X"
779780
>
780781
Scroll X
@@ -785,12 +786,12 @@ exports[`renders components/attachments/demo/overflow.tsx extend context correct
785786
>
786787
<input
787788
class="ant-segmented-item-input"
789+
name="test-id"
788790
type="radio"
789791
/>
790792
<div
791793
aria-selected="false"
792794
class="ant-segmented-item-label"
793-
role="option"
794795
title="Scroll Y"
795796
>
796797
Scroll Y

components/attachments/__tests__/__snapshots__/demo.test.tsx.snap

+6-5
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,9 @@ Array [
675675
<div
676676
aria-label="segmented control"
677677
class="ant-segmented"
678-
role="listbox"
678+
role="radiogroup"
679679
style="margin-inline-end:auto"
680+
tabindex="0"
680681
>
681682
<div
682683
class="ant-segmented-group"
@@ -687,12 +688,12 @@ Array [
687688
<input
688689
checked=""
689690
class="ant-segmented-item-input"
691+
name="test-id"
690692
type="radio"
691693
/>
692694
<div
693695
aria-selected="true"
694696
class="ant-segmented-item-label"
695-
role="option"
696697
title="Wrap"
697698
>
698699
Wrap
@@ -703,12 +704,12 @@ Array [
703704
>
704705
<input
705706
class="ant-segmented-item-input"
707+
name="test-id"
706708
type="radio"
707709
/>
708710
<div
709711
aria-selected="false"
710712
class="ant-segmented-item-label"
711-
role="option"
712713
title="Scroll X"
713714
>
714715
Scroll X
@@ -719,12 +720,12 @@ Array [
719720
>
720721
<input
721722
class="ant-segmented-item-input"
723+
name="test-id"
722724
type="radio"
723725
/>
724726
<div
725727
aria-selected="false"
726728
class="ant-segmented-item-label"
727-
role="option"
728729
title="Scroll Y"
729730
>
730731
Scroll Y
@@ -1903,7 +1904,7 @@ Array [
19031904
exports[`renders components/attachments/demo/placeholder.tsx correctly 1`] = `
19041905
<div
19051906
class="ant-flex ant-flex-align-stretch ant-flex-gap-middle ant-flex-vertical"
1906-
style="padding:16px;background:rgba(0, 0, 0, 0.04)"
1907+
style="padding:16px;background:rgba(0,0,0,0.04)"
19071908
>
19081909
<div
19091910
style="border-radius:6px;overflow:hidden;background:#ffffff"

0 commit comments

Comments
 (0)