Description
In the CSS_Ref index, initial_letter returns the literal first character of the title, so vendor-prefixed properties (e.g. -webkit-foo) are all bucketed under the "-" heading instead of a letter.
Motivation
Make the CSS reference index easier to scan by grouping prefixed properties under their meaningful initial letter (e.g. -webkit-foo under "F").
Additional details
This is a content/UX decision — confirm the desired behavior (strip a leading vendor prefix / leading - before taking the initial letter) before implementing. Relevant code: initial_letter in crates/rari-doc/src/templ/templs/css_ref.rs.
Related issues and pull requests
Follow-up from #673 (comment).
Description
In the
CSS_Refindex,initial_letterreturns the literal first character of the title, so vendor-prefixed properties (e.g.-webkit-foo) are all bucketed under the "-" heading instead of a letter.Motivation
Make the CSS reference index easier to scan by grouping prefixed properties under their meaningful initial letter (e.g.
-webkit-foounder "F").Additional details
This is a content/UX decision — confirm the desired behavior (strip a leading vendor prefix / leading
-before taking the initial letter) before implementing. Relevant code:initial_letterincrates/rari-doc/src/templ/templs/css_ref.rs.Related issues and pull requests
Follow-up from #673 (comment).