Skip to content

Commit

Permalink
fix(pb-paginate): Fix css
Browse files Browse the repository at this point in the history
* make bullet of active page *always* round, independently from
font-size or fo-family instead of oval
* replace static values with global variables
  • Loading branch information
plutonik-a committed Aug 30, 2020
1 parent d99a520 commit 064cb8b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/pb-paginate.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { translate } from "./pb-i18n.js";

/**
* Display a pagination control from which the user can select a page to view
* from a multi-page collection of resources. To determine the number of pages,
* from a multi-page collection of resources. To determine the number of pages,
* `pb-paginate` listens for the `pb-results-received` event emitted by `pb-load`.
* If the user clicks on one of the page indicators, a `pb-load` event is emitted,
* which should cause the connected `pb-load` element to refresh.
*
*
* @fires pb-load - Fires when user selects new page to show
* @fires pb-results-received - When received, recalculates page ranges to display according to the parameters received
*/
Expand Down Expand Up @@ -119,10 +119,13 @@ export class PbPaginate extends pbMixin(LitElement) {
}
.active {
background-color: var(--paper-grey-800);
color: white;
background-color: var(--pb-color-primary);
color: var(--pb-color-inverse);
border-radius: 50%;
min-width: 1em;
width: 1em;
line-height: 1em;
padding: .4em;
text-align: center;
box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.14),
Expand Down Expand Up @@ -197,4 +200,4 @@ export class PbPaginate extends pbMixin(LitElement) {
});
}
}
customElements.define('pb-paginate', PbPaginate);
customElements.define('pb-paginate', PbPaginate);

0 comments on commit 064cb8b

Please sign in to comment.