How to hide the download button when download is not available #260
-
I would like to hide the download button for the slides which are not non-downloadable. When setting Also, when rendering customIcon, is it possible to use a different icon when hover/clicking on the download button. Any help would be greatly appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sure, you can hide the inactive Download button with the following CSS customization: .yarl__button[aria-label="Download"]:disabled {
display: none;
}
Not unless you implement your own DownloadButton and render it through However, you can target .yarl__button[aria-label="Download"]:hover {
/* ... */
}
.yarl__button[aria-label="Download"]:active {
/* ... */
} |
Beta Was this translation helpful? Give feedback.
Sure, you can hide the inactive Download button with the following CSS customization:
Not unless you implement your own DownloadButton and render it through
render.buttonDownload
.However, you can target
:hover
and:active
states and provide certain customizations with CSS.