Shoes size mappings should be in Scarpe-Components #505
Labels
enhancement
New feature or request
good first issue
Good for newcomers
KWoC-2023
IIT Kharagpur Winter of Code 2023 - good for new contributors
Right now we use the mappings of Shoes names to sizes (e.g. banner, subtitle, inscription) in several different places. For instance, I see it in scarpe-components/lib/scarpe/components/calzini.rb, scarpe-components/lib/scarpe/components/tiranti.rb, lacci/lib/shoes/drawables/para.rb, lib/scarpe/wv/span.rb and lib/scarpe/wv/para.rb.
We should have a Scarpe Component with the size mapping, and these other places should all use it and depend on it. In a few places, the data structure is slightly different. For instance, Tiranti maps the names to size and HTML tag (e.g. p, h1, h2). But we can still get the size information from one place, not keep a separate copy everywhere.
The text was updated successfully, but these errors were encountered: