• Resolved belyvolk

    (@belyvolk)


    Добрый день
    В теме двадцать двадцать на кнопках навигации появился цветной фон. Из-за этого не видно самих кнопок. Вы можете посмотреть по ссылке. Скажите, это можно исправить?

    Good afternoon
    In the theme “Twenty Twenty”, a colored background appeared on the navigation buttons. Because of this, the buttons themselves are not visible. You can look at the link. Tell me, can this be fixed?

    • This topic was modified 4 years, 10 months ago by belyvolk.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Arno Welzel

    (@awelzel)

    The reason for the background is the following CSS rule which also applies to the Photoswipe buttons since Photoswipe uses <button> elements for the navigation:

    button:not(.toggle), .button, .faux-button, .wp-block-button__link, .wp-block-file .wp-block-file__button, input[type="button"], input[type="reset"], input[type="submit"], .bg-accent, .bg-accent-hover:hover, .bg-accent-hover:focus, :root .has-accent-background-color, .comment-reply-link {
        background-color: 
        #feffff;
    }

    This is bad style and I consider this a bug in the theme – a CSS rule should never apply globally to all elements without a class (button:not(.toggle)). I don’t know yet how I can create a workaround to fix this. You should ask the creators of Twenty Twenty to fix this CSS rule so it will not affect button elements which are not part of the theme. Maybe you can create a child theme and fix the rules yourself.

    Plugin Author Arno Welzel

    (@awelzel)

    After some more research I found a workaround which I may include with the next update.

    The skins will have the following CSS rule to remove the button background color set by Twenty Twenty:

    .pswp__button {
      background-color: #00000000 !important;
    }

    Edit: I tested rule above with Twenty Twenty and it seems to work so far. But I still have to verify that this does not create other problems.

    • This reply was modified 4 years, 9 months ago by Arno Welzel.
    • This reply was modified 4 years, 9 months ago by Arno Welzel.
    Thread Starter belyvolk

    (@belyvolk)

    I wrote to the authors of the topic 2020. However, there is still no answer.
    I am very glad that you managed to find a workaround for solving the problem. I hope to see this fix in the next update. Many thanks

    Plugin Author Arno Welzel

    (@awelzel)

    I just released version 2.50 which includes the mentioned CSS workarounds for the Twenty Twenty theme.

    Thread Starter belyvolk

    (@belyvolk)

    Thank you so much, everything works.
    The best plugin

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problem with navigation buttons’ is closed to new replies.