Skip to content

Commit

Permalink
feat: ✨ Change Textfield type to number for Font size and line height
Browse files Browse the repository at this point in the history
Allow users to change the font size using keyboard arrow keys
  • Loading branch information
mayurpanchalshoptimize committed Jul 31, 2021
1 parent 82c4719 commit 6783822
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/utils/IconsPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const IconsPicker = ({ data, setData }) => {
<p className="text-xs text-[#666] dark:text-[#bbb] my-3">Icon Size</p>
<TextField
label="Font Size"
type="number"
variant="outlined"
size="small"
value={data.icon.fontSize}
Expand Down
2 changes: 2 additions & 0 deletions components/utils/TextTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ const TextTab = ({ title, setTitle, name }) => {
<p className="text-xs text-[#666] dark:text-[#bbb] my-3">Font Size</p>
<TextField
label="Font Size"
type="number"
variant="outlined"
size="small"
value={title.fontSize}
Expand All @@ -96,6 +97,7 @@ const TextTab = ({ title, setTitle, name }) => {
<p className="text-xs text-[#666] dark:text-[#bbb] my-3">Line Height</p>
<TextField
label="Line Height"
type="number"
variant="outlined"
size="small"
value={title.lineHeight}
Expand Down

0 comments on commit 6783822

Please sign in to comment.