Skip to content

Commit 486a6b3

Browse files
committed
fix(page-title-actions): visual compatibility issue with WordPress 7
1 parent 8e21a49 commit 486a6b3

3 files changed

Lines changed: 8 additions & 25 deletions

File tree

assets/admin.scss

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@
44

55
.vrts-list-table-page {
66

7-
.vrts-page-title-action {
8-
color: #fff;
9-
border-color: var(--vrts-admin-theme-color);
10-
11-
&:hover {
12-
color: #fff;
13-
border-color: var(--vrts-admin-theme-color);
14-
}
15-
}
16-
177
tbody {
188
background-color: #f6f7f9;
199
}

components/tests-page/_style.scss

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,12 @@
1212
margin: 0;
1313
}
1414

15-
button,
16-
[type="submit"] {
17-
18-
&:disabled {
19-
pointer-events: none;
20-
opacity: 0.6;
21-
}
22-
23-
&:active {
24-
padding: 0 10px !important;
25-
border-radius: 3px !important;
26-
margin: 0 !important;
27-
}
15+
.vrts-page-title-action {
16+
position: relative;
17+
top: -3px;
18+
min-height: 32px;
19+
line-height: 2.30769231;
20+
padding: 0 12px;
2821
}
2922
}
3023

components/tests-page/views/tests-page-list.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<menu class="page-title-actions">
1515
<li>
16-
<button type="button" class="page-title-action vrts-page-title-action button-primary"
16+
<button type="button" class="vrts-page-title-action button-primary"
1717
id="<?php echo ( ! $data['is_connected'] || intval( $data['remaining_tests'] ) === 0 ) ? 'modal-add-new-disabled' : 'show-modal-add-new'; ?>"
1818
<?php echo ( ! $data['is_connected'] || intval( $data['remaining_tests'] ) === 0 ) ? ' disabled' : ''; ?>>
1919
<?php esc_html_e( 'Add New', 'visual-regression-tests' ); ?>
@@ -24,7 +24,7 @@
2424
<form method="post" id="form-run-manual-tests">
2525
<?php wp_nonce_field( 'submit_run_manual_tests', '_wpnonce' ); ?>
2626
<input type="submit" name="submit_run_manual_tests" value="<?php esc_attr_e( 'Run All Tests', 'visual-regression-tests' ); ?>"
27-
class="page-title-action button-secondary"
27+
class="vrts-page-title-action button-secondary"
2828
id="<?php echo ( ! $data['is_connected'] || ! $data['running_tests_count'] ) ? 'run-manual-tests-disabled' : 'run-manual-tests'; ?>"
2929
<?php echo ( ! $data['is_connected'] || ! $data['running_tests_count'] ) ? ' disabled' : ''; ?>
3030
>

0 commit comments

Comments
 (0)