Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion resources/css/elements/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
@layer base {
/* Explicitly show focus without needing to tab */
.show-focus:focus,
button,
/* Explicitly show focus without needing to tab for buttons inside modals, e.g. Assets > cancel button on delete modal */
[data-dismissable-layer] button:focus,
/* and then a global selector for focus-visible everywhere else (except where the focus-within class will handle the focus outline target instead). Use a direct descendant here so we don't affect things like the focus state of Bard field > Replicator > then another Bard field. */
Expand Down Expand Up @@ -70,7 +71,7 @@
}

/* Notes...

- Sometimes we want to show a focus outline on a container when it has focus-within, e.g. in Replicator sets where we want to show a focus outline on the set header when it has focus on the button inside the header, whose shape is not as neat.

- Here we set a specific target for the focus outline
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/assets/Browser/Grid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
</div>
</div>
</button>
<div class="absolute end-2 top-1">
<div class="absolute end-1 top-1 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 transition-opacity [&_button]:bg-white [&_button]:hover:bg-white [&_button]:dark:bg-gray-900 [&_button]:dark:hover:bg-gray-900">
<Dropdown placement="left-start">
<DropdownMenu>
<DropdownItem
Expand Down