mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
add labels to zoom buttons
This commit is contained in:
@@ -291,11 +291,21 @@ export default class WaViewportDemo extends WebAwesomeElement {
|
||||
<span part="controls">
|
||||
${dimensions}
|
||||
<span class="zoom">
|
||||
<wa-icon-button name="square-minus" variant="regular" @click=${() => this.zoomOut()} part="zoom-out button"
|
||||
<wa-icon-button
|
||||
name="square-minus"
|
||||
variant="regular"
|
||||
label="Zoom out"
|
||||
@click=${() => this.zoomOut()}
|
||||
part="zoom-out button"
|
||||
>-</wa-icon-button
|
||||
>
|
||||
<span class="zoom-level"> ${Math.round(this.computedZoom * 100)}%</span>
|
||||
<wa-icon-button name="square-plus" variant="regular" @click=${() => this.zoomIn()} part="zoom-in button"
|
||||
<wa-icon-button
|
||||
name="square-plus"
|
||||
variant="regular"
|
||||
label="Zoom in"
|
||||
@click=${() => this.zoomIn()}
|
||||
part="zoom-in button"
|
||||
>+</wa-icon-button
|
||||
>
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user