Open ivopisarovic opened 2 days ago
@h0ldemslav @flecmen @terezadohnal What do you think? Which variant do you like? Or suggest yours.
I like the first as well.
The second question, I think it depends on desired use-case of SDS. If it is supposed to be a npm package, installable and thus usable in a project, it makes sense to have the prefix everywhere, to prevent collisions in a project. It could be possible to use more design systems, each having their own implementation of flexbox.
Currently, we use
<a-ar-
as the prefix for primitives. Our system targets all kinds of 3D apps, also VR, desktop and mobile devices. Hence, the "ar" in the prefix is not appropriate anymore. Change the prefix of all primitives to the new form and ensure backward compatibility (keep the former primitives as an alias for the ne ones).Possible variants of new prefix:
<sds-button>
<a-sds-button>
<s-button>
<a-s-button>
I personally prefer variant 1.
Another question is whether to prefix also components themselves, like
sds-billboard
orsds-flexbox
. Not sure about that.