Skip to content

Commit

Permalink
Set cursor via JS
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasr8 committed Jan 27, 2025
1 parent 98e5624 commit b97d986
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python_docs_theme/static/pydoctheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ div.sphinxsidebar input[type='text'] {
margin-left: 0;
color: #444444;
font-size: 1.2em;
cursor: col-resize;
cursor: default; /* cursor is set to 'col-resize' using JS */
padding-top: 1px;
float: none;
display: table;
Expand Down
1 change: 1 addition & 0 deletions python_docs_theme/static/sidebar.js_t
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const initialiseSidebar = () => {
sidebarbutton.tabindex = "0" // make it focusable
sidebarbutton.role = "slider"
sidebarbutton.title = _("Resize sidebar")
sidebarbutton.style.cursor = "col-resize" // Set the cursor only if JS is enabled
sidebarbutton.setAttribute("aria-label", _("Resize sidebar by dragging"))
sidebarbutton.setAttribute(
"aria-valuetext",
Expand Down

0 comments on commit b97d986

Please sign in to comment.