mirror of https://github.com/rancher/dashboard.git
fix grouping of RadioGroup with meaningful title (#13838)
* fix grouping of RadioGroup with meaninful title * apply fix from Phil
This commit is contained in:
parent
4421b7332f
commit
be068fade4
|
|
@ -199,12 +199,13 @@ export default defineComponent({
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<fieldset>
|
||||||
<!-- Label -->
|
<!-- Label -->
|
||||||
<div
|
<div
|
||||||
v-if="label || labelKey || tooltip || tooltipKey || $slots.label"
|
v-if="label || labelKey || tooltip || tooltipKey || $slots.label"
|
||||||
class="radio-group label"
|
class="radio-group label"
|
||||||
>
|
>
|
||||||
|
<legend>
|
||||||
<slot name="label">
|
<slot name="label">
|
||||||
<h3>
|
<h3>
|
||||||
<t
|
<t
|
||||||
|
|
@ -226,6 +227,7 @@ export default defineComponent({
|
||||||
/>
|
/>
|
||||||
</h3>
|
</h3>
|
||||||
</slot>
|
</slot>
|
||||||
|
</legend>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Group -->
|
<!-- Group -->
|
||||||
|
|
@ -266,7 +268,7 @@ export default defineComponent({
|
||||||
</slot>
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</fieldset>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang='scss'>
|
<style lang='scss'>
|
||||||
|
|
|
||||||
|
|
@ -144,3 +144,9 @@ HR.vertical {
|
||||||
.force-wrap { @include force-wrap }
|
.force-wrap { @include force-wrap }
|
||||||
.bordered-section { @include bordered-section }
|
.bordered-section { @include bordered-section }
|
||||||
.section-divider { @include section-divider }
|
.section-divider { @include section-divider }
|
||||||
|
|
||||||
|
fieldset {
|
||||||
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
|
margin-inline: 0;
|
||||||
|
}
|
||||||
|
|
@ -103,9 +103,6 @@ export default {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<p class="set-landing-leadin">
|
|
||||||
{{ t('landing.landingPrefs.body') }}
|
|
||||||
</p>
|
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
id="login-route"
|
id="login-route"
|
||||||
:value="afterLoginRoute"
|
:value="afterLoginRoute"
|
||||||
|
|
@ -113,6 +110,11 @@ export default {
|
||||||
:options="routeRadioOptions"
|
:options="routeRadioOptions"
|
||||||
@update:value="updateLoginRoute"
|
@update:value="updateLoginRoute"
|
||||||
>
|
>
|
||||||
|
<template #label>
|
||||||
|
<p class="set-landing-leadin">
|
||||||
|
{{ t('landing.landingPrefs.body') }}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
<template #2="{option}">
|
<template #2="{option}">
|
||||||
<div class="custom-page">
|
<div class="custom-page">
|
||||||
<RadioButton
|
<RadioButton
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue