I’m unable to apply CSS styles to any element within the
kendo-upload element. Let’s use k-upload-button as an example. I’ve tried the
following selectors without success:
. k-upload-button
. k-button .k-upload-button
. k-upload > .k-dropzone > .k-upload-button
Looking in Chrome’s debugging tool, it doesn’t appear that the style is being overridden, but instead the selector isn’t selecting the element. How would one go about styling the individual elements within the kendo-upload element?
Although certainly not ideal, I am able to style them using JavaScript within Angular’s ngAfterViewInit function:
ngAfterViewInit() {
let kendoUploadButton = document.querySelector('.k-upload-button');
kendoUploadButton.setAttribute('style', 'display:none');
}
. k-upload-button
. k-button .k-upload-button
. k-upload > .k-dropzone > .k-upload-button
Looking in Chrome’s debugging tool, it doesn’t appear that the style is being overridden, but instead the selector isn’t selecting the element. How would one go about styling the individual elements within the kendo-upload element?
Although certainly not ideal, I am able to style them using JavaScript within Angular’s ngAfterViewInit function:
ngAfterViewInit() {
let kendoUploadButton = document.querySelector('.k-upload-button');
kendoUploadButton.setAttribute('style', 'display:none');
}