Skip to content

Commit

Permalink
fix: inherit font size and line height in hypertext styles (#3320)
Browse files Browse the repository at this point in the history
* fix: inherit font size and line height in hypertext styles

* update control display property to ensure consistent alignment while inline
  • Loading branch information
chrisdholt authored Jun 16, 2020
1 parent aedaae0 commit 98348cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,13 @@ export const AccentButtonStyles = css`
export const HypertextStyles = css`
:host(.hypertext) {
height: auto;
font-size: inherit;
line-height: inherit;
background: transparent;
vertical-align: bottom;
}
:host(.hypertext) .control {
display: inline;
padding: 0;
border: none;
box-shadow: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,14 @@ export const AccentButtonStyles = css`
*/
export const HypertextStyles = css`
:host(.hypertext) {
font-size: inherit;
line-height: inherit;
height: auto;
background: transparent;
vertical-align: bottom;
}
:host(.hypertext) .control {
display: inline;
padding: 0;
border: none;
box-shadow: none;
Expand Down

0 comments on commit 98348cb

Please sign in to comment.