|
93 | 93 | &__pagination {
|
94 | 94 | align-items: center;
|
95 | 95 | // Compute max width for N items based on their size, margin and focus outline
|
96 |
| - max-width: ($item-max-count * ($item-size + $item-margin-inline)) + $item-focus-outline * 2; |
| 96 | + max-width: ($item-max-count * ($item-size + $item-margin-inline)) + $item-focus-outline * 2 + $item-size; |
97 | 97 | overflow: hidden;
|
98 | 98 | }
|
99 | 99 |
|
|
130 | 130 | }
|
131 | 131 |
|
132 | 132 | #{$self}--theme-light & {
|
133 |
| - background-color: lumx-color-variant("dark", "L4"); |
| 133 | + background-color:lumx-color-variant("dark", "L5"); |
134 | 134 |
|
135 | 135 | &[data-focus-visible-added] {
|
136 | 136 | @include lumx-state(lumx-base-const("state", "FOCUS"), lumx-base-const("emphasis", "LOW"), "dark");
|
137 | 137 | }
|
138 | 138 |
|
139 |
| - &:hover, |
| 139 | + &:hover { |
| 140 | + background-color: lumx-color-variant("primary", "N"); |
| 141 | + } |
140 | 142 | &--is-active {
|
141 | 143 | background-color: lumx-color-variant("primary", "N");
|
142 |
| - |
| 144 | + width: $item-size*2; |
| 145 | + border-radius: $lumx-border-radius; |
| 146 | + |
143 | 147 | &[data-focus-visible-added] {
|
144 | 148 | @include lumx-state(lumx-base-const("state", "FOCUS"), lumx-base-const("emphasis", "LOW"), "primary");
|
145 | 149 | }
|
146 | 150 | }
|
147 | 151 | }
|
148 | 152 |
|
149 | 153 | #{$self}--theme-dark & {
|
150 |
| - background-color: lumx-color-variant("light", "L4"); |
| 154 | + background-color: lumx-color-variant("light", "L5"); |
151 | 155 |
|
152 | 156 | &[data-focus-visible-added] {
|
153 | 157 | @include lumx-state(lumx-base-const("state", "FOCUS"), lumx-base-const("emphasis", "LOW"), "light");
|
154 | 158 | }
|
155 | 159 |
|
156 |
| - &:hover, |
| 160 | + &:hover { |
| 161 | + background-color: lumx-color-variant("light", "N"); |
| 162 | + } |
157 | 163 | &--is-active {
|
158 | 164 | background-color: lumx-color-variant("light", "N");
|
| 165 | + width: $item-size*2; |
| 166 | + border-radius: $lumx-border-radius; |
159 | 167 |
|
160 | 168 | &[data-focus-visible-added] {
|
161 | 169 | @include lumx-state(lumx-base-const("state", "FOCUS"), lumx-base-const("emphasis", "LOW"), "light");
|
|
0 commit comments