-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[QTabs, QTabPane] Fix focus state + refactoring (#41)
* add focus styles
- Loading branch information
ViZhe
authored
Jan 20, 2021
1 parent
dd0d01b
commit 77315c0
Showing
10 changed files
with
123 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import Component from './src/QTabPane'; | ||
|
||
describe('QTabPane', () => { | ||
it('should match snapshot', async () => { | ||
const instance = shallowMount(Component, { | ||
propsData: { | ||
name: 'pane_name', | ||
title: 'Pane Title' | ||
} | ||
}); | ||
|
||
expect(instance.element).toMatchSnapshot(); | ||
}); | ||
}); |
23 changes: 23 additions & 0 deletions
23
src/qComponents/QTabPane/__snapshots__/QTabPane.test.js.snap
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,23 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`QTabPane should match snapshot 1`] = ` | ||
<div | ||
class="q-tab-pane" | ||
> | ||
<div | ||
class="q-tab-pane__inner" | ||
> | ||
<button | ||
class="q-tab-pane__btn" | ||
type="button" | ||
> | ||
Pane Title | ||
</button> | ||
</div> | ||
<!----> | ||
</div> | ||
`; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Component from './src/QTabs'; | ||
|
||
describe('QTabs', () => { | ||
it('should match snapshot', () => { | ||
const instance = shallowMount(Component); | ||
|
||
expect(instance.element).toMatchSnapshot(); | ||
}); | ||
|
||
it('data should match snapshot', () => { | ||
expect(Component.data()).toMatchSnapshot(); | ||
}); | ||
}); |
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,13 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`QTabs data should match snapshot 1`] = ` | ||
Object { | ||
"currentName": "", | ||
} | ||
`; | ||
|
||
exports[`QTabs should match snapshot 1`] = ` | ||
<div | ||
class="q-tabs" | ||
/> | ||
`; |
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