Skip to content

Commit

Permalink
style: API: add focus effect for links in modal()
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgurney committed Feb 1, 2025
1 parent 3081753 commit 71434e9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1759,6 +1759,13 @@ input[type="text"].note-toolbar-setting-error,
& .suggestion-item > p, .modal-title > p {
margin: 0;
}
& a.internal-link, a.external-link {
&:is(:focus-visible) {
border-radius: var(--input-radius);
box-shadow: 0 0 0 1px var(--background-modifier-border);
box-shadow: 0 0 0 2px var(--background-modifier-border-focus);
}
}
&[data-ntb-ui-mode*="noclose"] {
& .modal-close-button {
display: none;
Expand Down
7 changes: 7 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2648,6 +2648,13 @@ input[type="text"].note-toolbar-setting-error,
& .suggestion-item > p, .modal-title > p {
margin: 0;
}
& a.internal-link, a.external-link {
&:is(:focus-visible) {
border-radius: var(--input-radius);
box-shadow: 0 0 0 1px var(--background-modifier-border);
box-shadow: 0 0 0 2px var(--background-modifier-border-focus);
}
}
&[data-ntb-ui-mode*="noclose"] {
& .modal-close-button {
display: none;
Expand Down

0 comments on commit 71434e9

Please sign in to comment.