Skip to content

Commit

Permalink
test: 更新快照以添加 radio 输入的 name 属性和调整角色属性
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Jan 12, 2025
1 parent 608849b commit b74aa85
Show file tree
Hide file tree
Showing 7 changed files with 168 additions and 160 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,9 @@ exports[`renders components/attachments/demo/overflow.tsx extend context correct
<div
aria-label="segmented control"
class="ant-segmented"
role="listbox"
role="radiogroup"
style="margin-inline-end: auto;"
tabindex="0"
>
<div
class="ant-segmented-group"
Expand All @@ -759,12 +760,12 @@ exports[`renders components/attachments/demo/overflow.tsx extend context correct
<input
checked=""
class="ant-segmented-item-input"
name="test-id"
type="radio"
/>
<div
aria-selected="true"
class="ant-segmented-item-label"
role="option"
title="Wrap"
>
Wrap
Expand All @@ -775,12 +776,12 @@ exports[`renders components/attachments/demo/overflow.tsx extend context correct
>
<input
class="ant-segmented-item-input"
name="test-id"
type="radio"
/>
<div
aria-selected="false"
class="ant-segmented-item-label"
role="option"
title="Scroll X"
>
Scroll X
Expand All @@ -791,12 +792,12 @@ exports[`renders components/attachments/demo/overflow.tsx extend context correct
>
<input
class="ant-segmented-item-input"
name="test-id"
type="radio"
/>
<div
aria-selected="false"
class="ant-segmented-item-label"
role="option"
title="Scroll Y"
>
Scroll Y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,9 @@ Array [
<div
aria-label="segmented control"
class="ant-segmented"
role="listbox"
role="radiogroup"
style="margin-inline-end:auto"
tabindex="0"
>
<div
class="ant-segmented-group"
Expand All @@ -689,12 +690,12 @@ Array [
<input
checked=""
class="ant-segmented-item-input"
name="test-id"
type="radio"
/>
<div
aria-selected="true"
class="ant-segmented-item-label"
role="option"
title="Wrap"
>
Wrap
Expand All @@ -705,12 +706,12 @@ Array [
>
<input
class="ant-segmented-item-input"
name="test-id"
type="radio"
/>
<div
aria-selected="false"
class="ant-segmented-item-label"
role="option"
title="Scroll X"
>
Scroll X
Expand All @@ -721,12 +722,12 @@ Array [
>
<input
class="ant-segmented-item-input"
name="test-id"
type="radio"
/>
<div
aria-selected="false"
class="ant-segmented-item-label"
role="option"
title="Scroll Y"
>
Scroll Y
Expand Down Expand Up @@ -1905,7 +1906,7 @@ Array [
exports[`renders components/attachments/demo/placeholder.tsx correctly 1`] = `
<div
class="ant-flex ant-flex-align-stretch ant-flex-gap-middle ant-flex-vertical"
style="padding:16px;background:rgba(0, 0, 0, 0.04)"
style="padding:16px;background:rgba(0,0,0,0.04)"
>
<div
style="border-radius:6px;overflow:hidden;background:#ffffff"
Expand Down
Loading

0 comments on commit b74aa85

Please sign in to comment.