Skip to content

Use Vaadin theme Mixin for lit-pagination #15

Description

@jcgueriaud1

How can we change the style of pagination?

From Discord.
How can I change the size of the icons?

Ideally lit-pagination should use Vaadin themableMixin so it will be possible to use
Cssimport theme-for lit-pagination.
@CssImport(value = "./lit-pagination-custom.css", themeFor = "lit-pagination")
And use this css: lit-pagination-custom.css

paper-icon-button {
height: 70px;
width:70px;
}

There is an example here for lit and Vaadin 14:
https://github.com/vaadin-component-factory/explorer-tree-grid-flow/blob/master/explorer-tree-grid-flow/src/main/resources/META-INF/resources/frontend/src/explorer-tree-toggle.js#L14

And you need this annotation on the java side:
@NpmPackage(value="@vaadin/themable-element", version = "0.3.0")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions