Skip to content

Commit

Permalink
fix(kottiPagination): put css variable into root
Browse files Browse the repository at this point in the history
  • Loading branch information
Isokaeder committed Oct 14, 2021
1 parent 4d4e67c commit d5cb62f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/kotti-ui/source/kotti-pagination/KtPagination.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ export default defineComponent<KottiPagination.PropsInternal>({
})
</script>

<style lang="scss">
:root {
--kt-pagination-color-active: var(--interactive-03);
}
</style>

<style lang="scss" scoped>
.kt-pagination {
margin: 0;
Expand All @@ -111,13 +117,12 @@ export default defineComponent<KottiPagination.PropsInternal>({
}
}
::v-deep &__page-item {
--pagination-color-active: var(--interactive-03);
display: inline-block;
padding: var(--unit-2);
line-height: 24px;
text-align: center;
&--is-active {
color: var(--pagination-color-active);
color: var(--kt-pagination-color-active);
}
&--is-disabled {
cursor: not-allowed;
Expand Down

0 comments on commit d5cb62f

Please sign in to comment.