Skip to content

Commit

Permalink
Fix border styles when select control is active (#19184)
Browse files Browse the repository at this point in the history
* fix border styles when control is active

* Change files

Co-authored-by: Cory LaViska <corylaviska@microsoft.com>
  • Loading branch information
claviska and Cory LaViska authored Jul 29, 2021
1 parent 0301b34 commit b0f4787
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix border styles when control is active",
"packageName": "@fluentui/web-components",
"email": "corylaviska@microsoft.com",
"dependentChangeType": "patch"
}
5 changes: 2 additions & 3 deletions packages/web-components/src/select/select.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,14 @@ export const selectStyles = (context, definition) =>
:host(:not([disabled])) .control:active {
background: ${neutralFillInputActive};
border-color: ${neutralStrokeActive};
border-radius: calc(${controlCornerRadius} * 1px);
}
:host([open][position='above']) .listbox,
:host([open][position='below']) .control {
:host([open][position='above']) .listbox {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
:host([open][position='above']) .control,
:host([open][position='below']) .listbox {
border-top-left-radius: 0;
border-top-right-radius: 0;
Expand Down

0 comments on commit b0f4787

Please sign in to comment.