Skip to content

Commit

Permalink
fix(menus): prevent inherited line-height from affecting positioning (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jzempel committed Jun 12, 2020
1 parent 25065b6 commit 97c029a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/theming/.size-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
}
},
"index.cjs.js": {
"bundled": 20867,
"minified": 13382,
"gzipped": 4943
"bundled": 20881,
"minified": 13396,
"gzipped": 4950
},
"index.esm.js": {
"bundled": 20100,
"minified": 12680,
"gzipped": 4831,
"bundled": 20114,
"minified": 12694,
"gzipped": 4838,
"treeshaked": {
"rollup": {
"code": 3408,
Expand Down
1 change: 1 addition & 0 deletions packages/theming/src/utils/menuStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export default function menuStyles(position: MENU_POSITION, options: MENU_OPTION
position: absolute;
z-index: ${options.zIndex || 0};
${marginProperty}: ${options.margin};
line-height: 0;
font-size: 0.01px; /* [1] */
& ${options.childSelector || '> *'} {
Expand Down

0 comments on commit 97c029a

Please sign in to comment.