Skip to content

Commit 51f23fe

Browse files
fix styles for single-card (React) and "create account" button set stylingMode=outlined
1 parent 06b33b8 commit 51f23fe

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

packages/devextreme-cli/src/templates/react/application/src/components/login-form/LoginForm.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export default function LoginForm() {
8585
</div>
8686
<Button
8787
text={'Create an account'}
88+
stylingMode={ 'outlined' }
8889
width={'100%'}
8990
onClick={onCreateAccountClick}
9091
/>

packages/devextreme-cli/src/templates/react/application/src/layouts/single-card/single-card.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
height: 100%;
66

77
.dx-card {
8-
width: 330px;
8+
width: 360px;
99
margin: auto auto;
10-
padding: 40px;
10+
padding: 24px;
1111
flex-grow: 0;
12+
border-radius: 8px;
1213

1314
.screen-x-small & {
1415
width: 100%;
@@ -21,13 +22,14 @@
2122
}
2223

2324
.header {
24-
margin-bottom: 30px;
25+
margin: 24px 0;
2526

2627
.title {
2728
color: var(--base-text-color);
28-
line-height: 28px;
2929
font-weight: 500;
3030
font-size: 24px;
31+
text-align: center;
32+
line-height: 24px;
3133
}
3234

3335
.description {
@@ -37,7 +39,6 @@
3739
margin-top: 32px;
3840
text-align: center;
3941
}
40-
4142
}
4243
}
4344
}

packages/devextreme-cli/src/templates/vue-v3/application/src/views/login-form.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
</div>
4949
<dx-button
5050
text="Create an account"
51+
stylingMode="outlined"
5152
width="100%"
5253
@click="onCreateAccountClick"
5354
/>

packages/devextreme-schematics/src/add-layout/files/src/app/shared/components/login-form/login-form.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@
3939
<div class="link">
4040
<a routerLink="/reset-password">Forgot password?</a>
4141
</div>
42-
<dx-button text="Create an account" width="100%" (click)="onCreateAccountClick()"></dx-button>
42+
<dx-button stylingMode="outlined" text="Create an account" width="100%" (click)="onCreateAccountClick()"></dx-button>
4343
</form>

0 commit comments

Comments
 (0)