forked from microsoft/BotFramework-Composer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: make focus styles more consistent (microsoft#2898)
* use action button instead of link for more consistent focus style * fix focus outline for visual panel * fix search box focus style * fix visual editor focus style * improve focus styles for dialog nav * fix focus style for main left nav * bring connect skill button into toolbar show the skill form in a modal * fix broken tests * fix focus style in form * remove extra border from visual design container * Fix lint Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
- Loading branch information
1 parent
7232d1c
commit 3182fd3
Showing
20 changed files
with
335 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
Composer/packages/client/__tests__/testUtils/renderWithStore.jsx
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
Composer/packages/client/__tests__/testUtils/renderWithStore.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
import React from 'react'; | ||
import { render } from '@bfc/test-utils'; | ||
import mapValues from 'lodash/mapValues'; | ||
|
||
import { State } from '../../src/store/types'; | ||
import * as initialActions from '../../src/store/action'; | ||
import { initialState, StoreContext, StoreContextValue } from '../../src/store'; | ||
|
||
export function renderWithStore(subject, state: Partial<State> = {}, actions = {}) { | ||
const store: StoreContextValue = { | ||
actions: { | ||
...mapValues(initialActions, () => jest.fn()), | ||
...actions, | ||
}, | ||
state: { | ||
...initialState, | ||
...state, | ||
}, | ||
dispatch: jest.fn(), | ||
resolvers: { | ||
lgImportresolver: jest.fn(), | ||
lgFileResolver: jest.fn(), | ||
luFileResolver: jest.fn(), | ||
}, | ||
}; | ||
|
||
return render(<StoreContext.Provider value={store}>{subject}</StoreContext.Provider>); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.