Skip to content

Commit dc04ccb

Browse files
epilandejonathantneal
authored andcommitted
Allow form elements to inherit line-height from html (#119)
* Allow form elements to inherit line-height from html Override default `line-height: normal;` * Update README
1 parent 99ea533 commit dc04ccb

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ button, input, select, textarea {
133133
border-style: none;
134134
color: inherit;
135135
font-size: 1em;
136+
line-height: inherit;
137+
margin: 0;
136138
}
137139
```
138140

sanitize.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ textarea {
344344
border-style: none; /* 1 */
345345
color: inherit; /* 1 */
346346
font-size: 1em; /* 1 */
347+
line-height: inherit; /* 1 */
347348
margin: 0; /* 2 */
348349
}
349350

0 commit comments

Comments
 (0)