Skip to content

Commit a89848c

Browse files
authored
Merge branch 'development' into feature/64-add-text-field
2 parents c83ca8f + 52b2fea commit a89848c

File tree

4 files changed

+59
-58
lines changed

4 files changed

+59
-58
lines changed

src/components/AddButton.vue

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,7 @@
66
:height="buttonSize"
77
@click="onClick"
88
>
9-
<span v-if="iconSize === 'x-small'">
10-
<v-icon :color="iconColor" x-small>{{ iconName }}</v-icon>
11-
</span>
12-
<span v-if="iconSize === 'small'">
13-
<v-icon :color="iconColor" small>{{ iconName }}</v-icon>
14-
</span>
15-
<span v-if="iconSize === 'medium'">
16-
<v-icon :color="iconColor" small>{{ iconName }}</v-icon>
17-
</span>
18-
<span v-if="iconSize === 'large'">
19-
<v-icon :color="iconColor" small>{{ iconName }}</v-icon>
20-
</span>
21-
<span v-if="iconSize === 'x-large'">
22-
<v-icon :color="iconColor" x-large>{{ iconName }}</v-icon>
23-
</span>
9+
<v-icon :size="iconSize" :color="iconColor">{{ iconName }}</v-icon>
2410
</v-btn>
2511
</template>
2612

@@ -51,14 +37,9 @@ export default Vue.extend({
5137
default: '#004170'
5238
},
5339
iconSize: {
54-
type: String,
40+
type: [String, Number],
5541
required: false,
56-
default: 'medium',
57-
validator(value: string): boolean {
58-
return ['x-small', 'small', 'medium', 'large', 'x-large'].includes(
59-
value
60-
)
61-
}
42+
default: '40'
6243
}
6344
},
6445
methods: {

src/components/LessonCaption.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ export default Vue.extend({
5252
})
5353
</script>
5454

55-
<style scoped>
55+
<style lang="scss" scoped>
5656
.lessoncaption-title {
5757
display: flex;
5858
flex-direction: column;
59-
background: #015998;
60-
color: #fff;
59+
background: $color-base-color-07;
60+
color: $color-white;
6161
height: 66px;
6262
border-radius: 22px !important;
6363
margin: 0 8px;
@@ -71,7 +71,7 @@ export default Vue.extend({
7171
font-size: 28px;
7272
padding: 10px 2px 0 2px;
7373
display: flex;
74-
color: #fff !important;
74+
color: $color-white !important;
7575
align-items: center;
7676
text-align: center;
7777
}
@@ -80,7 +80,7 @@ export default Vue.extend({
8080
font-size: 8px;
8181
margin-top: 0;
8282
display: flex;
83-
color: #fff !important;
83+
color: $color-white !important;
8484
align-items: center;
8585
text-align: center;
8686
}
@@ -91,7 +91,7 @@ export default Vue.extend({
9191
font-weight: normal;
9292
font-size: 10px;
9393
text-align: center;
94-
color: #fff;
94+
color: $color-white;
9595
flex: none;
9696
order: 4;
9797
align-self: center;
Lines changed: 41 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
<template>
2-
<v-bottom-sheet v-model="sheet" persistent>
3-
<v-container class="simple-bottom-sheet">
4-
<v-row>
5-
<v-col class="message">{{ message }}</v-col>
6-
<v-col cols="2">
7-
<span class="abb-button">
8-
<AddButton @addButtonClicked="addButtonClicked" />
9-
</span>
10-
</v-col>
11-
</v-row>
12-
</v-container>
2+
<v-bottom-sheet v-model="sheet" class="sheet" persistent scrollable>
3+
<v-card class="card">
4+
<v-card-title class="card-title" />
5+
<v-card-text class="card-text">
6+
<v-container class="container">
7+
<v-row class="row">
8+
<v-col class="col message">{{ message }}</v-col>
9+
<v-col cols="2">
10+
<span class="add-button">
11+
<AddButton @addButtonClicked="addButtonClicked" />
12+
</span>
13+
</v-col>
14+
</v-row>
15+
</v-container>
16+
</v-card-text>
17+
</v-card>
1318
</v-bottom-sheet>
1419
</template>
1520

@@ -23,6 +28,7 @@ export default Vue.extend({
2328
props: {
2429
message: {
2530
type: String,
31+
default: 'メッセージ',
2632
required: true
2733
},
2834
expanded: {
@@ -38,32 +44,46 @@ export default Vue.extend({
3844
},
3945
methods: {
4046
addButtonClicked() {
41-
this.sheet = !this.sheet
4247
this.$emit('addButtonClicked')
4348
}
4449
}
4550
})
4651
</script>
4752

4853
<style lang="scss" scoped>
49-
.simple-bottom-sheet {
54+
.card {
5055
background-color: $color-base-color-07;
51-
color: $color-white;
52-
border-radius: 24px 24px 0 0;
56+
border-radius: 24px 24px 0 0 !important;
57+
}
58+
59+
.card-title {
60+
padding: 8px !important;
61+
}
62+
.card-text {
63+
padding: 0 !important;
64+
}
65+
66+
.container {
67+
padding: 0 16px 16px;
68+
}
69+
70+
.row {
71+
margin: 0;
72+
padding: 0;
73+
}
74+
75+
.col {
5376
padding: 0;
5477
}
5578
5679
.message {
57-
max-width: 90%;
58-
padding: 1rem 1.5rem;
5980
align-self: center;
81+
color: $color-white !important;
82+
font-family: 'Noto Sans JP', sans-serif;
6083
}
6184
6285
.add-button {
63-
max-width: 20%;
64-
margin: 0 12px;
65-
padding: 10px;
66-
align-self: end;
86+
align-self: start;
6787
float: right;
6888
}
6989
</style>

src/components/__tests__/CalendarBar.spec.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ describe('CalendarBar.vue', () => {
6262
// 2020-05-08T10:00:00.000+0900
6363
const dt = new Date(2020, 4, 8, 10, 0, 0, 0)
6464
const wrapper = mountFunction({
65-
propsData: { date: dt, config: { view: 'V', startWeekOn: 'DOW' } }
65+
propsData: { value: dt, config: { view: 'V', startWeekOn: 'DOW' } }
6666
})
67-
expect(wrapper.props().date).toBe(dt)
67+
expect(wrapper.props().value).toBe(dt)
6868
expect(wrapper.props().config.view).toBe('V')
6969
expect(wrapper.props().config.startWeekOn).toBe('DOW')
7070
})
@@ -87,7 +87,7 @@ describe('CalendarBar.vue', () => {
8787

8888
wrapper = mountFunction({
8989
propsData: {
90-
date: dt,
90+
value: dt,
9191
config: { view: 'Day', startWeekOn: 'Sunday' }
9292
}
9393
})
@@ -97,7 +97,7 @@ describe('CalendarBar.vue', () => {
9797

9898
wrapper = mountFunction({
9999
propsData: {
100-
date: dt,
100+
value: dt,
101101
config: { view: 'Day', startWeekOn: 'Monday' }
102102
}
103103
})
@@ -118,7 +118,7 @@ describe('CalendarBar.vue', () => {
118118
new Date(2020, 4, 9, 10, 0, 0, 0)
119119
)
120120
const props = (pDate: Date, pDow: string) => ({
121-
date: pDate,
121+
value: pDate,
122122
config: { view: 'Week', startWeekOn: pDow }
123123
})
124124
let dateListWindow
@@ -234,7 +234,7 @@ describe('CalendarBar.vue', () => {
234234
new Date(2020, 4, 9, 10, 0, 0, 0)
235235
)
236236
const props = (pDate: Date, pDow: string) => ({
237-
date: pDate,
237+
value: pDate,
238238
config: { view: 'Weekday', startWeekOn: pDow }
239239
})
240240
let dateListWindow
@@ -300,7 +300,7 @@ describe('CalendarBar.vue', () => {
300300

301301
wrapper = mountFunction({
302302
propsData: {
303-
date: dt,
303+
value: dt,
304304
config: { view: 'Day', startWeekOn: 'Sunday' }
305305
}
306306
})
@@ -368,7 +368,7 @@ describe('CalendarBar.vue', () => {
368368

369369
wrapper = mountFunction({
370370
propsData: {
371-
date: dt,
371+
value: dt,
372372
config: { view: 'Week', startWeekOn: 'Sunday' }
373373
}
374374
})
@@ -438,7 +438,7 @@ describe('CalendarBar.vue', () => {
438438

439439
wrapper = mountFunction({
440440
propsData: {
441-
date: dt,
441+
value: dt,
442442
config: { view: 'Weekday', startWeekOn: 'Sunday' }
443443
}
444444
})

0 commit comments

Comments
 (0)