Skip to content

Commit

Permalink
change colors for ace_snippet-marker (#5474)
Browse files Browse the repository at this point in the history
* change colors for ace_snippet-marker

* fix screen reader reading snippets as their insert value

* remove border
  • Loading branch information
oykuyilmaz committed Jan 29, 2024
1 parent c807f9e commit 5914dc5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/autocomplete/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class AcePopup {
el.setAttribute("aria-activedescendant", ariaId);
selected.setAttribute("role", optionAriaRole);
selected.setAttribute("aria-roledescription", nls("item"));
selected.setAttribute("aria-label", popup.getData(row).value);
selected.setAttribute("aria-label", popup.getData(row).caption || popup.getData(row).value);
selected.setAttribute("aria-setsize", popup.data.length);
selected.setAttribute("aria-posinset", row + 1);
selected.setAttribute("aria-describedby", "doc-tooltip");
Expand Down
4 changes: 4 additions & 0 deletions src/theme/cloud_editor-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ module.exports = `
.ace-cloud_editor .ace_tooltip.ace_hover-tooltip:focus > div {
outline: 1px solid #0073bb;
}
.ace-cloud_editor .ace_snippet-marker {
background-color: #CED6E0;
border: 0;
}
.ace-cloud_editor.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
background-color: #f2f3f3;
Expand Down
4 changes: 4 additions & 0 deletions src/theme/cloud_editor_dark-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ module.exports = `
.ace-cloud_editor_dark .ace_tooltip.ace_hover-tooltip:focus > div {
outline: 1px solid #44b9d6;
}
.ace-cloud_editor_dark .ace_snippet-marker {
background-color: #434650;
border: 0;
}
.ace-cloud_editor_dark.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
background-color: #272A30;
Expand Down

0 comments on commit 5914dc5

Please sign in to comment.