diff --git a/core/modules/media_library/config/install/views.view.media_library.yml b/core/modules/media_library/config/install/views.view.media_library.yml index 51429928963da241a220b8907dadb7c6adfe59a9..309e1658bb53a041479697c15a9026d2de211573 100644 --- a/core/modules/media_library/config/install/views.view.media_library.yml +++ b/core/modules/media_library/config/install/views.view.media_library.yml @@ -45,7 +45,7 @@ display: exposed_form: type: basic options: - submit_button: 'Apply Filters' + submit_button: 'Apply filters' reset_button: false reset_button_label: Reset exposed_sorts_label: 'Sort by' diff --git a/core/modules/media_library/css/media_library.module.css b/core/modules/media_library/css/media_library.module.css index 91d9beb0c911a2a032ef111903246bdab4b05a33..ed428b20e0c6cff29458fbb134dbf9ee31b02964 100644 --- a/core/modules/media_library/css/media_library.module.css +++ b/core/modules/media_library/css/media_library.module.css @@ -52,10 +52,15 @@ position: absolute; z-index: 1; top: 5px; - right: 0; + right: 5px; /* LTR */ display: block; } +[dir="rtl"] .media-library-item .js-click-to-select-checkbox { + right: 0; + left: 5px; +} + .media-library-item__status { position: absolute; top: 10px; diff --git a/core/modules/media_library/css/media_library.theme.css b/core/modules/media_library/css/media_library.theme.css index 2b9002c8d699996891418ca59bd70adcde68ce4b..3fa49f2571d3e66223c30333830e0ba1274082df 100644 --- a/core/modules/media_library/css/media_library.theme.css +++ b/core/modules/media_library/css/media_library.theme.css @@ -210,7 +210,7 @@ .media-library-wrapper .view-header { align-self: flex-end; order: 2; - margin: 8px 0; + margin: 1em 0; text-align: right; /* LTR */ } [dir="rtl"] .media-library-wrapper .view-header { @@ -246,6 +246,7 @@ margin: 0; padding-left: 22px; /* LTR */ color: #333; + font-size: 15px; line-height: 16px; } [dir="rtl"] .media-library-wrapper .views-display-link { @@ -253,6 +254,10 @@ padding-left: 0; } +.media-library-wrapper .views-display-link.is-active { + font-weight: bold; +} + .media-library-wrapper .views-display-link-widget { margin-right: 15px; background: url(../../../misc/icons/333333/grid.svg) left 0 no-repeat; /* LTR */ diff --git a/core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTest.php b/core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTest.php index 0f195e6fc218332e010c6864c374fc43cbfbb4ce..6f79ed965e4c953b575b84808d6a13c99366ba30 100644 --- a/core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTest.php +++ b/core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTest.php @@ -99,19 +99,19 @@ public function testAdministrationPage() { // Test that users can filter by type. $page->selectFieldOption('Media type', 'Type One'); - $page->pressButton('Apply Filters'); + $page->pressButton('Apply filters'); $assert_session->assertWaitOnAjaxRequest(); $assert_session->pageTextContains('Dog'); $assert_session->pageTextNotContains('Turtle'); $page->selectFieldOption('Media type', 'Type Two'); - $page->pressButton('Apply Filters'); + $page->pressButton('Apply filters'); $assert_session->assertWaitOnAjaxRequest(); $assert_session->pageTextNotContains('Dog'); $assert_session->pageTextContains('Turtle'); // Test that selecting elements as a part of bulk operations works. $page->selectFieldOption('Media type', '- Any -'); - $page->pressButton('Apply Filters'); + $page->pressButton('Apply filters'); $assert_session->assertWaitOnAjaxRequest(); // This tests that anchor tags clicked inside the preview are suppressed. $this->getSession()->executeScript('jQuery(".js-click-to-select-trigger a")[4].click()'); @@ -453,12 +453,12 @@ public function testWidget() { $assert_session->assertWaitOnAjaxRequest(); $session = $this->getSession(); $session->getPage()->fillField('Name', 'Dog'); - $session->getPage()->pressButton('Apply Filters'); + $session->getPage()->pressButton('Apply filters'); $assert_session->assertWaitOnAjaxRequest(); $assert_session->pageTextContains('Dog'); $assert_session->pageTextNotContains('Bear'); $session->getPage()->fillField('Name', ''); - $session->getPage()->pressButton('Apply Filters'); + $session->getPage()->pressButton('Apply filters'); $assert_session->assertWaitOnAjaxRequest(); $assert_session->pageTextContains('Dog'); $assert_session->pageTextContains('Bear'); @@ -489,7 +489,7 @@ public function testWidget() { $assert_session->pageTextNotContains('Turtle'); // Assert the exposed filters can be applied. $page->fillField('Name', 'Dog'); - $page->pressButton('Apply Filters'); + $page->pressButton('Apply filters'); $assert_session->assertWaitOnAjaxRequest(); $assert_session->pageTextContains('Dog'); $assert_session->pageTextNotContains('Bear');