05-05-2020 05:38 PM
Is there an easy way to modify a CSS element for a dom-module using Studio? I figure I could create a custom element, and copy the module code from the elements.html, then modify as desired. However, that also requires an import into our bundle.html and likely another addition to our custom-bundle.html. For just a CSS modification this seems like more work than needed.
I was hoping I could just add the CSS to a custom theme.html, but that doesn't seem to work (or I am doing something wrong there). I just want to make some slight CSS modifications and was hoping there was a pretty straight-forward path to do so.
The CSS element in question is found in the dom-module id="nuxeo-document-create"
, and is .typeSelection div
The default CSS just doesn't look so great, and shows like this:
I have added a bit to the CSS, and can get it to look a bit better (to me at least):
Am I just missing something really easy to add this to a custom theme? Or should I just go and create a custom-element to do this simple change? (Although I don't really like to do that unless needed.) Here is all I want to add:
.typeSelection div {
margin-top: 0.5em;
word-break: break-word;
text-transform: capitalize;
font-size: 1.15em;
line-height: normal;
height: 2em;
}
05-05-2020 06:13 PM
Hello,
The best is always to edit the CSS variables exposed by the theme. If not, it means editing CSS variables which are vulcanized and located inside the element.html file. You can edit the CSS by updating the elements.html file (=forking it as you suggested), but it is a pretty big file and if we make some update from hotfixes, you'll miss it.
Regards
05-06-2020 11:33 AM
Thanks, that is what I thought, although I hoped for a bit easier solution. I appreciate the quick response.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.