Skip to content

Commit

Permalink
Single error term page: increase font-size of <code> in heading
Browse files Browse the repository at this point in the history
As a result of design feedback,
this is now bigger,
to be closer to the font-size of h1.wp-heading-inlin
  • Loading branch information
kienstra committed Sep 27, 2018
1 parent 0d1e255 commit d52dfea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 4 additions & 0 deletions assets/css/amp-validation-error-taxonomy.css
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ body.taxonomy-amp_validation_error .wp-list-table .new th.check-column input {
vertical-align: middle;
}

.wp-heading-inline code {
font-size: 1rem;
}

/** Details post action. */
.details button {
display: inline-block;
Expand Down
7 changes: 2 additions & 5 deletions includes/validation/class-amp-invalid-url-post-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -1211,10 +1211,7 @@ public static function print_admin_notice() {
$error_code = isset( $description['code'] ) ? $description['code'] : 'error';
$error_title = \AMP_Validation_Error_Taxonomy::get_error_title_from_code( $error_code );
$validation_error = json_decode( $error->description, true );
?>

<?php
$accept_all_url = wp_nonce_url(
$accept_all_url = wp_nonce_url(
add_query_arg(
array(
'action' => AMP_Validation_Error_Taxonomy::VALIDATION_ERROR_ACCEPT_ACTION,
Expand All @@ -1223,7 +1220,7 @@ public static function print_admin_notice() {
),
AMP_Validation_Error_Taxonomy::VALIDATION_ERROR_ACCEPT_ACTION
);
$reject_all_url = wp_nonce_url(
$reject_all_url = wp_nonce_url(
add_query_arg(
array(
'action' => AMP_Validation_Error_Taxonomy::VALIDATION_ERROR_REJECT_ACTION,
Expand Down

0 comments on commit d52dfea

Please sign in to comment.