Icon button with CSS class for SVG:
fa svg svg-sound-off
Clicking the button will toggle the CSS class to:
fa svg svg-sound-on
Include CSS library with paths to the SVG in the application definition.
:root {
--svg_sound_off: url(https://apex.adbc.dev/apex/css/svgicons/sound_off.svg);
--svg_sound_on: url(https://apex.adbc.dev/apex/css/svgicons/sound_on.svg);
}
.svg:before {
content: "";
background-repeat: no-repeat;
background-position: center;
height: var(--a-button-line-height, 1rem);
width: var(--a-button-icon-size, 1rem);
}
.svg-sound-off:before {
background-image: var(--svg_sound_off);
}
.svg-sound-on:before {
background-image: var(--svg_sound_on);
}