Skip to content

Commit

Permalink
Merge commit 'da750ca487ff81f33af4c3bab18c02235d5648b8' of https://gi…
Browse files Browse the repository at this point in the history
  • Loading branch information
gitstart committed Sep 6, 2023
2 parents 1a6b100 + da750ca commit a3dc230
Show file tree
Hide file tree
Showing 15 changed files with 38 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function TableCustomized() {

{emptyRows > 0 && (
<tr style={{ height: 34 * emptyRows }}>
<td colSpan={3} />
<td colSpan={3} aria-hidden />
</tr>
)}
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function TableCustomized() {

{emptyRows > 0 && (
<tr style={{ height: 34 * emptyRows }}>
<td colSpan={3} />
<td colSpan={3} aria-hidden />
</tr>
)}
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function TableCustomized() {

{emptyRows > 0 && (
<tr style={{ height: 34 * emptyRows }}>
<td colSpan={3} />
<td colSpan={3} aria-hidden />
</tr>
)}
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function TableCustomized() {

{emptyRows > 0 && (
<tr style={{ height: 34 * emptyRows }}>
<td colSpan={3} />
<td colSpan={3} aria-hidden />
</tr>
)}
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export default function TableCustomized() {
<td
className="border border-solid border-slate-200 dark:border-slate-800 text-left p-1.5"
colSpan={3}
aria-hidden
/>
</tr>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export default function TableCustomized() {
<td
className="border border-solid border-slate-200 dark:border-slate-800 text-left p-1.5"
colSpan={3}
aria-hidden
/>
</tr>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function TableUnstyled() {
))}
{emptyRows > 0 && (
<tr style={{ height: 41 * emptyRows }}>
<td colSpan={3} />
<td colSpan={3} aria-hidden />
</tr>
)}
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function TableUnstyled() {
))}
{emptyRows > 0 && (
<tr style={{ height: 41 * emptyRows }}>
<td colSpan={3} />
<td colSpan={3} aria-hidden />
</tr>
)}
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/components/table/TableSortAndSelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export default function TableSortAndSelection() {
'--TableRow-hoverBackground': 'transparent',
}}
>
<td colSpan={6} />
<td colSpan={6} aria-hidden />
</tr>
)}
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/components/table/TableSortAndSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ export default function TableSortAndSelection() {
} as React.CSSProperties
}
>
<td colSpan={6} />
<td colSpan={6} aria-hidden />
</tr>
)}
</tbody>
Expand Down
31 changes: 13 additions & 18 deletions docs/data/material/components/buttons/InputFileUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,22 @@ import { styled } from '@mui/material/styles';
import Button from '@mui/material/Button';
import CloudUploadIcon from '@mui/icons-material/CloudUpload';

const VisuallyHiddenInput = styled('input')`
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
bottom: 0;
left: 0;
white-space: nowrap;
width: 1px;
`;
const VisuallyHiddenInput = styled('input')({
clip: 'rect(0 0 0 0)',
clipPath: 'inset(50%)',
height: 1,
overflow: 'hidden',
position: 'absolute',
bottom: 0,
left: 0,
whiteSpace: 'nowrap',
width: 1,
});

export default function InputFileUpload() {
return (
<Button
component="label"
variant="contained"
startIcon={<CloudUploadIcon />}
href="#file-upload"
>
Upload a file
<Button component="label" variant="contained" startIcon={<CloudUploadIcon />}>
Upload file
<VisuallyHiddenInput type="file" />
</Button>
);
Expand Down
31 changes: 13 additions & 18 deletions docs/data/material/components/buttons/InputFileUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,22 @@ import { styled } from '@mui/material/styles';
import Button from '@mui/material/Button';
import CloudUploadIcon from '@mui/icons-material/CloudUpload';

const VisuallyHiddenInput = styled('input')`
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
bottom: 0;
left: 0;
white-space: nowrap;
width: 1px;
`;
const VisuallyHiddenInput = styled('input')({
clip: 'rect(0 0 0 0)',
clipPath: 'inset(50%)',
height: 1,
overflow: 'hidden',
position: 'absolute',
bottom: 0,
left: 0,
whiteSpace: 'nowrap',
width: 1,
});

export default function InputFileUpload() {
return (
<Button
component="label"
variant="contained"
startIcon={<CloudUploadIcon />}
href="#file-upload"
>
Upload a file
<Button component="label" variant="contained" startIcon={<CloudUploadIcon />}>
Upload file
<VisuallyHiddenInput type="file" />
</Button>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
<Button
component="label"
variant="contained"
startIcon={<CloudUploadIcon />}
href="#file-upload"
>
Upload a file
<Button component="label" variant="contained" startIcon={<CloudUploadIcon />}>
Upload file
<VisuallyHiddenInput type="file" />
</Button>
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ const StyledComponent = styled('button')(({ theme }) => ({

- `defaultMode?: 'light' | 'dark' | 'system'` - Application's default mode (`light` by default)
- `disableTransitionOnChange : boolean` - Disable CSS transitions when switching between modes
- `enableColorScheme: boolean` - Indicate to the browser which color scheme is used (light or dark) for rendering built-in UI
- `prefix: string` - CSS variable prefix
- `theme: ThemeInput` - the theme provided to React's context
- `modeStorageKey?: string` - localStorage key used to store application `mode`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ See the complete usage of `createVssVarsProvider` in [Material UI](https://githu

- `defaultMode?: 'light' | 'dark' | 'system'` - Application's default mode (`light` by default)
- `disableTransitionOnChange : boolean` - Disable CSS transitions when switching between modes
- `enableColorScheme: boolean` - Indicate to the browser which color scheme is used (light or dark) for rendering built-in UI
- `prefix: string` - CSS variable prefix
- `theme: ThemeInput` - the theme provided to React's context
- `modeStorageKey?: string` - localStorage key used to store application `mode`
Expand Down

0 comments on commit a3dc230

Please sign in to comment.