Skip to content

Commit

Permalink
(web-components) fix select style height overlap (#18348)
Browse files Browse the repository at this point in the history
* fix a bug where the bottom border for select and comobox would visually disappear on active states

* Change files
  • Loading branch information
chrisdholt committed Jun 8, 2021
1 parent b4b04f0 commit a5e0caf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix a bug where the bottom border for select and comobox would visually disappear on active states",
"packageName": "@fluentui/web-components",
"email": "chhol@microsoft.com",
"dependentChangeType": "patch"
}
10 changes: 6 additions & 4 deletions packages/web-components/src/select/select.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ export const selectStyles = (context, definition) =>
border: calc(${outlineWidth} * 1px) solid ${neutralOutlineRest};
box-sizing: border-box;
color: ${neutralForegroundRest};
contain: contents;
font-family: ${bodyFont};
height: calc(${heightNumber} * 1px);
position: relative;
user-select: none;
min-width: 250px;
vertical-align: top;
}
.listbox {
Expand Down Expand Up @@ -88,9 +89,9 @@ export const selectStyles = (context, definition) =>
cursor: pointer;
display: flex;
font-size: ${typeRampBaseFontSize};
font: inherit;
font-family: inherit;
min-height: 100%;
line-height: ${typeRampBaseLineHeight};
min-height: calc(${heightNumber} * 1px);
padding: 0 calc(${designUnit} * 2.25px);
width: 100%;
}
Expand Down Expand Up @@ -131,6 +132,7 @@ export const selectStyles = (context, definition) =>
:host([disabled]) .control {
cursor: ${disabledCursor};
user-select: none;
}
:host([disabled]:hover) {
Expand Down Expand Up @@ -167,7 +169,7 @@ export const selectStyles = (context, definition) =>
}
.selected-value {
font-family: ${bodyFont};
font-family: inherit;
flex: 1 1 auto;
text-align: start;
}
Expand Down

0 comments on commit a5e0caf

Please sign in to comment.