Style tag for Widgets

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Style tag for Widgets

James Yong-2
Hi all,

Proposing a <style> tag for including css within CDATA marked section.
This allow us to include page specific css more easily than <platform-specific><csv> tag.

Regards,
James
Reply | Threaded
Open this post in threaded view
|

Re: Style tag for Widgets

taher
The widget system as I understand is a DSL for rendering user interfaces
regardless of the underlying technology. So HTML is only one output.

Introducing styles might create coupling between the widget system and
HTML. We have been working hard to completely disentangle web from widget
such as moving web artifacts from framework to common theme.

My suggestion for solving problems of custom elements includes the below:
- drop down to FTL using platform-specific tag
- design a new widget and call it something like <custom-widget> that we
can discuss its design in another thread.
- if something is commonly used, incorporate it into the framework.

So I would recommend avoiding the style attribute or limiting it to
specific tags.

On Jan 20, 2018 5:02 AM, "James Yong" <[hidden email]> wrote:

> Hi all,
>
> Proposing a <style> tag for including css within CDATA marked section.
> This allow us to include page specific css more easily than
> <platform-specific><csv> tag.
>
> Regards,
> James
>
Reply | Threaded
Open this post in threaded view
|

Re: Style tag for Widgets

Michael Brohl-3
+1

Inline CSS should be avoided.

The HTML code should only contain the standard tags and css class/id
attributes to decouple the page structure from the layout.

Regards,

Michael


Am 20.01.18 um 07:23 schrieb Taher Alkhateeb:

> The widget system as I understand is a DSL for rendering user interfaces
> regardless of the underlying technology. So HTML is only one output.
>
> Introducing styles might create coupling between the widget system and
> HTML. We have been working hard to completely disentangle web from widget
> such as moving web artifacts from framework to common theme.
>
> My suggestion for solving problems of custom elements includes the below:
> - drop down to FTL using platform-specific tag
> - design a new widget and call it something like <custom-widget> that we
> can discuss its design in another thread.
> - if something is commonly used, incorporate it into the framework.
>
> So I would recommend avoiding the style attribute or limiting it to
> specific tags.
>
> On Jan 20, 2018 5:02 AM, "James Yong" <[hidden email]> wrote:
>
>> Hi all,
>>
>> Proposing a <style> tag for including css within CDATA marked section.
>> This allow us to include page specific css more easily than
>> <platform-specific><csv> tag.
>>
>> Regards,
>> James
>>


smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Style tag for Widgets

James Yong-2
Hi Michael, Taher,

Points taken. I will probably go with the FTL option then.

Thanks,
James Yong

On 2018-01-20 20:41, Michael Brohl <[hidden email]> wrote:

> +1
>
> Inline CSS should be avoided.
>
> The HTML code should only contain the standard tags and css class/id
> attributes to decouple the page structure from the layout.
>
> Regards,
>
> Michael
>
>
> Am 20.01.18 um 07:23 schrieb Taher Alkhateeb:
> > The widget system as I understand is a DSL for rendering user interfaces
> > regardless of the underlying technology. So HTML is only one output.
> >
> > Introducing styles might create coupling between the widget system and
> > HTML. We have been working hard to completely disentangle web from widget
> > such as moving web artifacts from framework to common theme.
> >
> > My suggestion for solving problems of custom elements includes the below:
> > - drop down to FTL using platform-specific tag
> > - design a new widget and call it something like <custom-widget> that we
> > can discuss its design in another thread.
> > - if something is commonly used, incorporate it into the framework.
> >
> > So I would recommend avoiding the style attribute or limiting it to
> > specific tags.
> >
> > On Jan 20, 2018 5:02 AM, "James Yong" <[hidden email]> wrote:
> >
> >> Hi all,
> >>
> >> Proposing a <style> tag for including css within CDATA marked section.
> >> This allow us to include page specific css more easily than
> >> <platform-specific><csv> tag.
> >>
> >> Regards,
> >> James
> >>
>
>
>