Skip to content

Commit

Permalink
fix: make Material checkbox group theme vertical work (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phan-ThanhDat committed Mar 25, 2020
1 parent 3a17751 commit ba2606f
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions test/visual/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@
</vaadin-checkbox-group>
</div>

<div id="theme-vertical-group-tests">
<vaadin-checkbox-group label="Choose a number" theme="vertical">
<vaadin-checkbox value="1">1</vaadin-checkbox>
<vaadin-checkbox value="2">2</vaadin-checkbox>
</vaadin-checkbox-group>
</div>

<div id="disabled-group-tests">
<vaadin-checkbox-group label="Choose a number" disabled>
<vaadin-checkbox value="1">1</vaadin-checkbox>
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions test/visual/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ gemini.suite('vaadin-checkbox', function(rootSuite) {
.capture('default');
});

gemini.suite(`theme-vertical-group-tests-${theme}`, (suite) => {
suite
.setUrl(`default.html?theme=${theme}`)
.setCaptureElements('#theme-vertical-group-tests')
.capture('default');
});

gemini.suite(`disabled-group-tests-${theme}`, (suite) => {
suite
.setUrl(`default.html?theme=${theme}`)
Expand Down
2 changes: 1 addition & 1 deletion theme/material/vaadin-checkbox-group-styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
position: absolute;
}

:host([theme~="vertical"]) {
:host([theme~="vertical"]) [part="group-field"] {
display: flex;
flex-direction: column;
}
Expand Down

0 comments on commit ba2606f

Please sign in to comment.