question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: allow pagination and navigation elements to be styled

See original GitHub issue

right now from the parent component, you can style the outer .VueCarousel-navigation and .VueCarousel-pagination, but not the elements:

  • .VueCarousel-navigation-button
  • .VueCarousel-dot

If necessary we can pass in a style like:<carousel :navigationStyle="styleObject"..., but an even better one would be to ensure the inner elements are exposed to styling from the scope of the parent component. I think a careful use of slots in the outer components might resolve this issue.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:7
  • Comments:10

github_iconTop GitHub Comments

5reactions
manniLcommented, Apr 17, 2018

It’d be better to use named slots for custom styling of the nav components though 🤔

2reactions
bovas85commented, Nov 23, 2017

You can set the content of the arrow to empty as a custom label, then in a global style (not scoped) do

.VueCarousel-navigation-button {
  &.VueCarousel-navigation-prev {
    &:before {
      content: url('/static/images/arrowleft_normal.svg');
      position: absolute;
      top: 0;
      right: 0;
      width: 54px;
      height: 54px;
    }
    &:hover {
      &:before {
        content: url('/static/images/arrowleft_hover.svg');
      }
    }
  }
  &.VueCarousel-navigation-next {
    &:before {
      content: url('/static/images/arrowright_normal.svg');
      position: absolute;
      top: 0;
      right: 0;
      width: 54px;
      height: 54px;
    }
    &:hover {
      &:before {
        content: url('/static/images/arrowright_hover.svg');
      }
    }
  }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Set Pagination and Navigation for the Search Results
Step 5 – The AJAX Search widget has many styling options to customize each content element. Proceed to the Style tab and unfold...
Read more >
Pagination | U.S. Web Design System (USWDS)
Paginated content is any content split into multiple pages determined only by a specific amount of content per page, not split by any...
Read more >
How to Build a Custom Pagination Component in React
In this post, we will focus on pagination and we'll build a custom ... want to render a pagination component with different styles...
Read more >
WordPress Pagination: How to Add Pagination Manually or ...
While we'll get to some handy WordPress pagination plugins in the next section, you also get some built-in features to work with WordPress ......
Read more >
Creating multiple pages with navigation menus - W3C
Anchors/links do not just become menus on their own — you need to structure and style them to let both the browser and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found