Created
January 28, 2024 20:22
-
-
Save ahebrank/f27f12801bc8363b226f5e3c5444a4e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/css/media_library_edit.admin.css b/css/media_library_edit.admin.css | |
index 0a163d4..8c9eb98 100644 | |
--- a/css/media_library_edit.admin.css | |
+++ b/css/media_library_edit.admin.css | |
@@ -1,4 +1,4 @@ | |
-.media-library-edit__link { | |
+.media-library-edit__link::after { | |
position: absolute; | |
z-index: 1; | |
top: 40px; | |
@@ -8,17 +8,13 @@ | |
margin: 5px; | |
padding: 0; | |
transition: 0.2s border-color; | |
- color: transparent; | |
border: 2px solid #ccc; | |
border-radius: 20px; | |
background: url(../icons/pencil.svg) #fff center no-repeat; | |
background-size: 16px 16px; | |
text-shadow: none; | |
box-sizing: border-box; | |
-} | |
- | |
-.media-library-edit__link:hover { | |
- color: transparent; | |
+ content: ''; | |
} | |
.media-library-edit__modal::before { | |
diff --git a/media_library_edit.module b/media_library_edit.module | |
index cbd818c..a2cc7ce 100644 | |
--- a/media_library_edit.module | |
+++ b/media_library_edit.module | |
@@ -106,6 +106,7 @@ function media_library_edit_field_widget_single_element_form_alter(array &$eleme | |
'js-media-library-edit-link', | |
'media-library-edit__link', | |
'use-ajax', | |
+ 'visually-hidden', | |
], | |
'target' => '_blank', | |
'data-dialog-options' => json_encode([ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment