Please change text element defaults to "inherit" theme option and stack defaults

Hello. I think the Text Element should inherit as many properties as possible by default.

Currently, when adding a new text element to a page, it inherits the font-family and text-align properties, but beyond that, there are a few defaults that are applied automatically:

font-family: inherit; /* these are good: */
text-align: inherit; 
font-weight: 300; /* these are super annoying: */
line-height: 1.4;
color: rbg(0,0,0);

This is highly annoying when trying to build multiple page templates quickly, and when tweaking/adjusting/fine tuning a website after many templates have been built.

Many times my designers have built dozens of pages, and then tried to change the global line height across all of the page templates, only to find that this is not possible. The only way to do it is by applying a css override, like
.x-text:not(.x-text-headline){ line-height: 1.6 !important;}
but this then makes it impossible to have control of the line height of any future text element, unless you add a class or custom css to each text element that requires special treatment.

We do often save a Text Element template with all the desired properties configured in order to speed up template building, but this does not solve the problem of updating text formatting globally when necessary. Using templates we can only update the color and font family globally (using the font and color templates), but line height and font weight still need to be updated manually on every singe text element across the site. Also, setting a template as an element default does not help because it is impossible to set the line-height property to “inherit” (it just won’t accept that value). It is also impossible to set the color and font-weight properties to “inherit”. Having these options would make this method possible.

I understand that it would be incredibly complex to provide this functionality for all the properties of the text element, but I think it is reasonable to at least have the text element default to:

font-family: inherit; /* all of these should inherit */
text-align: inherit;
font-weight: inherit;
line-height: inherit;
color: inherit;

This way, we can go about designing all our pages, adding text elements all over the place without worrying about having to change these basic properties later on. We can simply add a global css line-height property, or font-weight, or color to the body element (or configure them in the theme options), and all the text elements would inherit these global styles.

Finally, while I’m on the subject of global theme options/settings, please add a line-height setting.

Thanks for your consideration. Cheers!

Hello @adaptifyDesigns,

Thanks for writing in! Please be advised that the text element has its own default styling. We cannot use the inherit keyword because the inherit keyword specifies that a property should inherit its value from its parent element. We highly recommend that you save your text element settings into a preset and then use this preset on any text element that the preset should apply. To learn more about preset, kindly check this out:

Hope this helps.

Thanks for the response @ruenel. I understand that it is not possible at this time. I am hoping this can be added to a list of feature requests. I’ve seen a couple other related requests on here, especially for the text element to inherit text color.

Having the default element set to inherit the properties I listed above would be helpful for the majority of use cases.

The presets do not help me with this issue, because it is not possible to set the line-height property to inherit. This one change (making it possible to set line-height to inherit) would vastly improve the usefulness of the template/preset feature (being able to save presets/templates and being able to apply template/presets as element defaults).

Can you please add this as a feature request?

Thank you.

Hello @adaptifyDesigns,

Thanks for your feedback as well. We’ve added this as a feature request so it can be taken into consideration for future development.

Cheers.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.