Skip to content

Commit 0856d0e

Browse files
committed
fixup: adjust label style of group to match mockup
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent d453656 commit 0856d0e

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

src/components/NcRadioGroup/NcRadioGroup.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ function onUpdate(value: string) {
8888
}
8989
9090
.radioGroup__label {
91+
font-size: 1.2em;
9192
font-weight: bold;
9293
margin-inline-start: var(--border-radius-element);
94+
margin-block-end: var(--default-grid-baseline);
9395
}
9496
</style>
9597

src/components/NcRadioGroup/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/

src/components/NcRadioGroup/useNcRadioGroup.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*!
2+
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
3+
* SPDX-License-Identifier: AGPL-3.0-or-later
4+
*/
5+
16
import type { ComputedRef, InjectionKey } from 'vue'
27

38
import { inject } from 'vue'

src/components/NcRadioGroupButton/NcRadioGroupButton.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ function onUpdate() {
8282
--radio-group-button--background-color: var(--color-primary-element-light);
8383
--radio-group-button--background-color-hover: var(--color-primary-element-light-hover);
8484
--radio-group-button--padding: 1px;
85+
cursor: pointer;
8586
color: var(--radio-group-button--color);
8687
background-color: var(--radio-group-button--background-color);
88+
transition: var(--animation-quick) background-color;
8789
border: var(--radio-group-button--border-width) solid var(--radio-group-button--background-color-hover);
8890
border-bottom-width: 2px;
8991
border-radius: var(--radio-group-button--border-radius);
@@ -95,6 +97,10 @@ function onUpdate() {
9597
padding-block: var(--radio-group-button--padding) 0;
9698
padding-inline: var(--radio-group-button--padding);
9799
100+
* {
101+
cursor: pointer;
102+
}
103+
98104
:has(&__label) {
99105
padding-inline: calc(var(--radio-group-button--padding) + var(--border-radius-element));
100106
}

src/components/NcRadioGroupButton/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/

0 commit comments

Comments
 (0)