mirror of
https://github.com/penpot/penpot.git
synced 2025-08-03 11:58:33 +02:00
🐛 Fix copy font-size doesn't copy the unit (#6776)
This commit is contained in:
parent
ce59070fd1
commit
67ca8ccb22
2 changed files with 2 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
|||
- Change "Save color" button to primary button [Taiga #9410](https://tree.taiga.io/project/penpot/issue/9410)
|
||||
|
||||
### :bug: Bugs fixed
|
||||
- Copying font size does not copy the unit [Taiga #11143](https://tree.taiga.io/project/penpot/issue/11143)
|
||||
|
||||
## 2.8.0 (Next / Unreleased)
|
||||
|
||||
|
|
|
@ -101,7 +101,7 @@
|
|||
[:div {:class (stl/css :global/attr-label)}
|
||||
(tr "inspect.attributes.typography.font-size")]
|
||||
[:div {:class (stl/css :global/attr-value)}
|
||||
[:> copy-button* {:data (copy-style-data style :font-size)}
|
||||
[:> copy-button* {:data (copy-style-data (assoc style :font-size (fmt/format-pixels (:font-size style))) :font-size)}
|
||||
[:div {:class (stl/css :button-children)}
|
||||
(fmt/format-pixels (:font-size style))]]]])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue