File tree Expand file tree Collapse file tree
extensions/ql-vscode/src/view Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { styled } from "styled-components" ;
2+
3+ /**
4+ * An element that will be hidden from sighted users, but visible to screen readers.
5+ */
6+ export const ScreenReaderOnly = styled . div `
7+ position: absolute;
8+ left: -10000px;
9+ top: auto;
10+ width: 1px;
11+ height: 1px;
12+ overflow: hidden;
13+ ` ;
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import { sortMethods } from "../../model-editor/shared/sorting";
1212import { InProgressMethods } from "../../model-editor/shared/in-progress-methods" ;
1313import { HiddenMethodsRow } from "./HiddenMethodsRow" ;
1414import { ModelEditorViewState } from "../../model-editor/shared/view-state" ;
15+ import { ScreenReaderOnly } from "../common/ScreenReaderOnly" ;
1516
1617export const SINGLE_MODEL_GRID_TEMPLATE_COLUMNS =
1718 "0.5fr 0.125fr 0.125fr 0.125fr 0.125fr" ;
@@ -92,7 +93,9 @@ export const ModeledMethodDataGrid = ({
9293 Kind
9394 </ VSCodeDataGridCell >
9495 { viewState . showMultipleModels && (
95- < VSCodeDataGridCell cellType = "columnheader" gridColumn = { 6 } />
96+ < VSCodeDataGridCell cellType = "columnheader" gridColumn = { 6 } >
97+ < ScreenReaderOnly > Add or remove models</ ScreenReaderOnly >
98+ </ VSCodeDataGridCell >
9699 ) }
97100 </ VSCodeDataGridRow >
98101 { methodsWithModelability . map ( ( { method, methodCanBeModeled } ) => {
You can’t perform that action at this time.
0 commit comments