Skip to content

Commit

Permalink
PR for :rise and :kerning in issue#520 (#527)
Browse files Browse the repository at this point in the history
* PR for :rise and :kerning in issue#520

* Update para.rb

replaced 'baseline-shift' with 'vertical-align'
  • Loading branch information
imlakshay08 authored Jan 17, 2024
1 parent 1389808 commit 2dd233f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scarpe-components/lib/scarpe/components/calzini/para.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def text_specific_styles(props)
"italic"
else
nil
end
end,
:'letter-spacing' => props["kerning"] ? "#{props["kerning"]}px" : nil,
:'vertical-align' => props["rise"] ? "#{props["rise"]}px" : nil
}.compact

s2 = {}
Expand Down

0 comments on commit 2dd233f

Please sign in to comment.