Update tooltips style to integrate better#9451
Conversation
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/879d9526-be69-4dcd-b9df-5f402298a4b9 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/879d9526-be69-4dcd-b9df-5f402298a4b9 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/879d9526-be69-4dcd-b9df-5f402298a4b9 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/879d9526-be69-4dcd-b9df-5f402298a4b9 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
| addToolTip({ | ||
| label: 'Close as not planned.\nWon’t fix, can’t repro, duplicate, stale', | ||
| direction: 'nw', | ||
| }, unplannedButton); |
There was a problem hiding this comment.
It's looking pretty good. I'll just have to verify that these all work
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/548e4a42-b2a9-48bc-9fcc-c14b4d93843f Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/548e4a42-b2a9-48bc-9fcc-c14b4d93843f Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/34ab5d27-c768-4348-9f21-e8b1f67a7d17 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
tooltipped
…label-with-tooltip
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/b1af5a61-e585-4947-af3f-dc6d7c219c5d Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
tooltippedtooltipped, and hotkey-tooltip linting
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/896f2162-0331-43d8-8a4d-46a727db5113 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
tooltipped, and hotkey-tooltip linting
fregante
left a comment
There was a problem hiding this comment.
Code looks good so far. Not completely tested.
I had to undo a couple of features because they were too messy.
These new helpers aren't necessarily better than what we had, they just look good when hotkeys are involved and when there are some overlap or ::before issues
| addToolTip({ | ||
| label: 'Open unread notifications', | ||
| shortcut: 'g u', | ||
| direction: 'sw', | ||
| }, button); |
|
We also should remove now redundant |
There was a problem hiding this comment.
oof, it had been a while since I had to verify this many features at once. The PR works, even if there are a lot of bugs I found along the way. Some tooltips should probably be repositioned, they don't look great.
direction=s is best. I think tool-tip avoids causing viewport overflows, clippings, and z-index flights, so most of the reasons why we chose alternative positioning should be reviewed.
| @@ -10,6 +10,7 @@ import api from '../github-helpers/api.js'; | |||
| import {expectToken} from '../github-helpers/github-token.js'; | |||
There was a problem hiding this comment.
| @@ -15,6 +15,7 @@ import {fixFileHeaderOverlap, isRepoCommitListRoot} from '../github-helpers/inde | |||
| import isDefaultBranch from '../github-helpers/is-default-branch.js'; | |||
There was a problem hiding this comment.
| @@ -11,6 +11,7 @@ import {expectToken} from '../github-helpers/github-token.js'; | |||
| import {cacheByRepo} from '../github-helpers/index.js'; | |||
There was a problem hiding this comment.
There was a problem hiding this comment.
There was a problem hiding this comment.
| @@ -10,6 +10,7 @@ import {$, $$, $$optional, $closest, $optional} from 'select-dom'; | |||
| import features from '../feature-manager.js'; | |||
There was a problem hiding this comment.
| @@ -8,6 +8,7 @@ import {conversationCloseEvent} from '../github-helpers/selectors.js'; | |||
| import {wrap} from '../helpers/dom-utils.js'; | |||
There was a problem hiding this comment.
There was a problem hiding this comment.
| @@ -13,6 +13,7 @@ import {legacyCommentField} from '../github-helpers/selectors.js'; | |||
| import {is} from '../helpers/css-selectors.js'; | |||
| @@ -10,6 +10,7 @@ import {$, $closest, $optional} from 'select-dom'; | |||
| import features from '../feature-manager.js'; | |||
There was a problem hiding this comment.
We can either:
- Revert this change
- Use newer "ButtonGroup" (more LOC)
| @@ -1 +1 @@ | |||
| import './tag-changes-link.css'; | |||
There was a problem hiding this comment.
| @@ -5,6 +5,7 @@ import {lastElementOptional} from 'select-dom'; | |||
|
|
|||
| @@ -1 +1 @@ | |||
| import * as pageDetect from 'github-url-detection'; | |||
There was a problem hiding this comment.
👌 Done and verified:
|

















I am a tool