Skip to content

Commit

Permalink
Merge pull request #1830 from ampproject/fix/menu-croll-down-pointer-…
Browse files Browse the repository at this point in the history
…cursor

Restore cursor:pointer for menu-scroll-down in Twenty Seventeen
  • Loading branch information
westonruter committed Jan 18, 2019
2 parents 147d889 + 67835c0 commit 44196c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/sanitizers/class-amp-core-theme-sanitizer.php
Expand Up @@ -687,6 +687,11 @@ public static function add_twentyseventeen_masthead_styles() {
display: none;
}

/* This is needed by add_smooth_scrolling because it removes the [href] attribute. */
.menu-scroll-down {
cursor: pointer;
}

<?php if ( $is_front_page_layout && ! has_custom_header() ) : ?>
/* https://github.com/WordPress/wordpress-develop/blob/fd5ba80c5c3d9cf62348567073945e246285fbca/src/wp-content/themes/twentyseventeen/assets/js/global.js#L92-L94 */
.site-branding {
Expand Down

0 comments on commit 44196c2

Please sign in to comment.