Page 1 of 1

Override default profiling attribute styles - deliveryTarget

Posted: Tue Mar 23, 2021 7:13 pm
by manojdcoder
When declaring deliveryTarget attribute a green outline appears on the element, is it possible to remove that?
Where may I find the corresponding CSS?

Re: Override default profiling attribute styles - deliveryTarget

Posted: Wed Mar 24, 2021 10:21 am
by cristi_talau
Hello,

The green border is added by the css/webauthor/profiling.css CSS file in the builtin DITA framework. You can remove this file in your DITA extension.

Best,
Cristian

Re: Override default profiling attribute styles - deliveryTarget

Posted: Wed Mar 24, 2021 5:40 pm
by manojdcoder
Thank you Cristi, but I have already deleted that file. It helped to get rid of some profiling attributes like audience, product etc., but didn't help for deliveryTarget.

We managed to hide the borders for deliveryTarget by setting `show.profiling.attributes` option to false (we don't really want any profiling attributes to highlight). But I'm wondering where the CSS was coming from, is there some default stylings set at SDK level?

Re: Override default profiling attribute styles - deliveryTarget

Posted: Thu Mar 25, 2021 5:38 pm
by mihai_coanda
Hello,

In order to override the border on elements marked with deliveryTarget you will need to add the following CSS snippet to your framework.

Code: Select all

*[deliveryTarget] {
	border: none !important;
}
Best Regards,
Michael

Re: Override default profiling attribute styles - deliveryTarget

Posted: Fri Mar 26, 2021 6:22 pm
by manojdcoder
I was hoping that we can configure the style somehow so we wouldn't have to write this for every profiling attributes.
Thank you anyways!

Re: Override default profiling attribute styles - deliveryTarget

Posted: Thu Jul 15, 2021 6:04 pm
by mihaela
Hello,

We just released the 23.1.1 version of Web Author and it contains the fix for the problem related to the deliveryTarget attribute: the green outline does not appear anymore on the elements having this attribute set.

Here is the "What's New" list for this version:
https://www.oxygenxml.com/xml_web_autho ... 3.1.1.html


Best Regards,
Mihaela