Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/PickerPanel/DatePanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,13 @@ export default function DatePanel<DateType extends object = any>(props: DatePane
: []);

if (prefixColumn) {
headerCells.push(<th key="empty" aria-label="empty cell" />);
headerCells.push(
<th key="empty">
<span style={{ width: 0, height: 0, position: 'absolute', overflow: 'hidden', opacity: 0 }}>
Week
</span>
</th>,
);
}
for (let i = 0; i < WEEK_DAY_COUNT; i += 1) {
headerCells.push(<th key={i}>{weekDaysLocale[(i + weekFirstDay) % WEEK_DAY_COUNT]}</th>);
Expand Down
20 changes: 14 additions & 6 deletions tests/__snapshots__/panel.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3395,9 +3395,13 @@ exports[`Picker.Panel append cell with cellRender in week 1`] = `
>
<thead>
<tr>
<th
aria-label="empty cell"
/>
<th>
<span
style="width: 0px; height: 0px; position: absolute; overflow: hidden; opacity: 0;"
>
Week
</span>
</th>
<th>
Su
</th>
Expand Down Expand Up @@ -6954,9 +6958,13 @@ exports[`Picker.Panel override cell with cellRender in week 1`] = `
>
<thead>
<tr>
<th
aria-label="empty cell"
/>
<th>
<span
style="width: 0px; height: 0px; position: absolute; overflow: hidden; opacity: 0;"
>
Week
</span>
</th>
<th>
Su
</th>
Expand Down