-
Notifications
You must be signed in to change notification settings - Fork 600
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SelectBox Grouping demo: fix custom icon alignment (#28509)
- Loading branch information
Showing
30 changed files
with
150 additions
and
20 deletions.
There are no files selected for viewing
8 changes: 6 additions & 2 deletions
8
apps/demos/Demos/SelectBox/GroupedItems/Angular/app/app.component.css
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
::ng-deep .custom-icon .icon { | ||
font-size: 17px; | ||
color: #f05b41; | ||
margin-right: 2px; | ||
} | ||
|
||
::ng-deep .custom-icon { | ||
display: flex; | ||
align-items: center; | ||
gap: 4px; | ||
} |
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
.custom-icon .icon { | ||
font-size: 17px; | ||
color: #f05b41; | ||
margin-right: 2px; | ||
} | ||
|
||
.custom-icon { | ||
display: flex; | ||
align-items: center; | ||
gap: 4px; | ||
} |
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
.custom-icon .icon { | ||
font-size: 17px; | ||
color: #f05b41; | ||
margin-right: 2px; | ||
} | ||
|
||
.custom-icon { | ||
display: flex; | ||
align-items: center; | ||
gap: 4px; | ||
} |
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
.custom-icon .icon { | ||
font-size: 17px; | ||
color: #f05b41; | ||
margin-right: 2px; | ||
} | ||
|
||
.custom-icon { | ||
display: flex; | ||
align-items: center; | ||
gap: 4px; | ||
} |
8 changes: 6 additions & 2 deletions
8
apps/demos/Demos/TagBox/GroupedItems/Angular/app/app.component.css
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; | ||
import { Selector as $ } from 'testcafe'; | ||
import { runManualTest } from '../../../utils/visual-tests/matrix-test-helper'; | ||
import { testScreenshot } from '../../../utils/visual-tests/helpers/theme-utils'; | ||
|
||
fixture('SelectBox.GroupedItems') | ||
.page('http://localhost:8080/') | ||
.before(async (ctx) => { | ||
ctx.initialWindowSize = [900, 600]; | ||
}); | ||
|
||
runManualTest('SelectBox', 'GroupedItems', ['jQuery', 'React', 'Vue', 'Angular'], (test) => { | ||
test('GroupedItems', async (t) => { | ||
const SELECT_BOX_CLASS = 'dx-selectbox'; | ||
const { takeScreenshot, compareResults } = createScreenshotsComparer(t); | ||
|
||
await t | ||
.click($(`.${SELECT_BOX_CLASS}`).nth(0)) | ||
.wait(200); | ||
|
||
await testScreenshot(t, takeScreenshot, 'selectbox_groupeditems_first_opened.png'); | ||
|
||
await t | ||
.click($(`.${SELECT_BOX_CLASS}`).nth(0)) | ||
.wait(200); | ||
|
||
await t | ||
.click($(`.${SELECT_BOX_CLASS}`).nth(1)) | ||
.wait(200); | ||
|
||
await testScreenshot(t, takeScreenshot, 'selectbox_groupeditems_second_opened.png'); | ||
|
||
await t | ||
.click($(`.${SELECT_BOX_CLASS}`).nth(1)) | ||
.wait(200); | ||
|
||
await t | ||
.click($(`.${SELECT_BOX_CLASS}`).nth(2)) | ||
.wait(200); | ||
|
||
await testScreenshot(t, takeScreenshot, 'selectbox_groupeditems_third_opened.png'); | ||
|
||
await t | ||
.expect(compareResults.isValid()) | ||
.ok(compareResults.errorMessages()); | ||
}); | ||
}); |
Binary file added
BIN
+35.3 KB
...s/selectbox/etalons/selectbox_groupeditems_first_opened (fluent.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.7 KB
...selectbox/etalons/selectbox_groupeditems_first_opened (material.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+33.1 KB
...demos/testing/widgets/selectbox/etalons/selectbox_groupeditems_first_opened.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+37.1 KB
.../selectbox/etalons/selectbox_groupeditems_second_opened (fluent.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.6 KB
...electbox/etalons/selectbox_groupeditems_second_opened (material.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+35 KB
...emos/testing/widgets/selectbox/etalons/selectbox_groupeditems_second_opened.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+39.9 KB
...s/selectbox/etalons/selectbox_groupeditems_third_opened (fluent.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+35.6 KB
...selectbox/etalons/selectbox_groupeditems_third_opened (material.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+37.9 KB
...demos/testing/widgets/selectbox/etalons/selectbox_groupeditems_third_opened.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,43 @@ | ||
import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; | ||
import { runManualTest } from '../../../utils/visual-tests/matrix-test-helper'; | ||
import { testScreenshot } from '../../../utils/visual-tests/helpers/theme-utils'; | ||
|
||
fixture('TagBox.GroupedItems') | ||
.page('http://localhost:8080/') | ||
.before(async (ctx) => { | ||
ctx.initialWindowSize = [900, 600]; | ||
}); | ||
|
||
runManualTest('TagBox', 'GroupedItems', ['jQuery', 'React', 'Vue', 'Angular'], (test) => { | ||
test('GroupedItems', async (t) => { | ||
const { takeScreenshot, compareResults } = createScreenshotsComparer(t); | ||
|
||
await t | ||
.pressKey('tab') | ||
.pressKey('alt+down'); | ||
|
||
await testScreenshot(t, takeScreenshot, 'tagbox_groupeditems_first_opened.png'); | ||
|
||
await t | ||
.pressKey('esc') | ||
|
||
await t | ||
.pressKey('tab') | ||
.pressKey('alt+down'); | ||
|
||
await testScreenshot(t, takeScreenshot, 'tagbox_groupeditems_second_opened.png'); | ||
|
||
await t | ||
.pressKey('esc') | ||
|
||
await t | ||
.pressKey('tab') | ||
.pressKey('alt+down'); | ||
|
||
await testScreenshot(t, takeScreenshot, 'tagbox_groupeditems_third_opened.png'); | ||
|
||
await t | ||
.expect(compareResults.isValid()) | ||
.ok(compareResults.errorMessages()); | ||
}); | ||
}); |
Binary file added
BIN
+39.2 KB
...widgets/tagbox/etalons/tagbox_groupeditems_first_opened (fluent.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.3 KB
...dgets/tagbox/etalons/tagbox_groupeditems_first_opened (material.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+37 KB
apps/demos/testing/widgets/tagbox/etalons/tagbox_groupeditems_first_opened.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+43.5 KB
...idgets/tagbox/etalons/tagbox_groupeditems_second_opened (fluent.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+40.3 KB
...gets/tagbox/etalons/tagbox_groupeditems_second_opened (material.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+41.1 KB
apps/demos/testing/widgets/tagbox/etalons/tagbox_groupeditems_second_opened.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+46.7 KB
...widgets/tagbox/etalons/tagbox_groupeditems_third_opened (fluent.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+43.7 KB
...dgets/tagbox/etalons/tagbox_groupeditems_third_opened (material.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+44 KB
apps/demos/testing/widgets/tagbox/etalons/tagbox_groupeditems_third_opened.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.