@ucd-lib/theme-elements 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -161,7 +161,7 @@ export default class UcdThemePagination extends LitElement {
|
|
|
161
161
|
return html `<li class="pager__item ${args.class || ''}">
|
|
162
162
|
${((this.currentPage == 1 && args.label == "Prev") || (this.currentPage == this.maxPages && args.label == "Next") ) ?
|
|
163
163
|
html`<button disabled style="cursor: default; color: ${this.darkmode ? '#cccccc' : '#999999'}; background: ${this.darkmode ? 'transparent' : 'white'}" page="${page}">${args.label || page}</button>`:
|
|
164
|
-
html`<a style="cursor:pointer;" tabindex="1" @click="${this._onPageClicked}" page="${page}" aria-label="${ifDefined(args.label === '...' ?
|
|
164
|
+
html`<a style="cursor:pointer;" tabindex="1" @click="${this._onPageClicked}" page="${page}" aria-label="${ifDefined(args.label === '...' ? `Page: ${page}` : undefined)}">${args.label || page}</a>`
|
|
165
165
|
}
|
|
166
166
|
</li>`;
|
|
167
167
|
}
|
|
@@ -170,7 +170,7 @@ export default class UcdThemePagination extends LitElement {
|
|
|
170
170
|
return html`<li class="pager__item ${args.class || ''}">
|
|
171
171
|
${((this.currentPage == 1 && args.label == "Prev") || (this.currentPage == this.maxPages && args.label == "Next") ) ?
|
|
172
172
|
html` <button disabled style="cursor: default; color: ${this.darkmode ? '#cccccc' : '#999999'}; background: ${this.darkmode ? 'transparent' : 'white'};" href="${href}">${args.label || page}</button>`:
|
|
173
|
-
html` <a href="${href}" aria-label="${ifDefined(args.label === '...' ?
|
|
173
|
+
html` <a href="${href}" aria-label="${ifDefined(args.label === '...' ? `Page: ${page}` : undefined)}">${args.label || page}</a>`
|
|
174
174
|
}
|
|
175
175
|
</li>`;
|
|
176
176
|
}
|