Closed ghost closed 6 years ago
@steigenTI Where did you find this 'deprecated' prefix in the kss-node documentation?
Not sure if documentation for this exists in the kss-node docs. However, it is part of the original KSS docs. There are actually two prefixes: deprecated
and experimental
.
https://github.com/kss-node/kss/blob/spec/SPEC.md
To describe the status of a set of rules, you should prefix the description with Experimental or Deprecated.
Experimental indicates CSS rules that apply to experimental styling. This can be useful when testing out new designs before they launch (staff only), alternative layouts in A/B tests, or beta features.
// Experimental: An alternative signup button styling used in AB Test #195. Deprecated indicates that the rule is slated for removal. Rules that are deprecated should not be used in future development. This description should explain what developers should do when encountering this style.
// Deprecated: Styling for legacy wikis. We’ll drop support for these wikis on // July 13, 2007.
I also found the relevant parts of the kss-node parser:
Added support for 'deprecated' and 'experimental'. @steigenTI Thank you for noticing. Will see if i can add some indicator in the navigation later on, so you got a quick overview of what is deprecated or experimental in your styleguide.
Current implementation:
The following markup contains a "deprecated" prefix in the description.
However, it gets rendered as a normal
<p>
with no additional classes: