Skip to content

Commit 60dac9d

Browse files
committed
refactor: use existing class
1 parent a5eb8e1 commit 60dac9d

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

app/components/Tag/RadioButton.vue

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const onChange = () => {
3333
:checked="checked"
3434
:disabled="props.disabled ? true : undefined"
3535
@change="onChange"
36-
class="peer"
36+
class="peer sr-only"
3737
/>
3838
<label
3939
class="bg-bg-muted text-fg-muted border-border hover:(text-fg border-border-hover) inline-flex items-center px-2 py-0.5 text-xs font-mono border rounded transition-colors duration-200 peer-focus:ring-2 peer-focus:ring-fg border-none peer-checked:(bg-fg text-bg border-fg hover:(text-text-bg/50)) peer-disabled:(opacity-50 pointer-events-none)"
@@ -43,18 +43,3 @@ const onChange = () => {
4343
</label>
4444
</div>
4545
</template>
46-
47-
<style scoped>
48-
input[type='radio'] {
49-
position: absolute;
50-
opacity: 0;
51-
width: 1px;
52-
height: 1px;
53-
margin: -1px;
54-
overflow: hidden;
55-
clip: rect(0 0 0 0);
56-
clip-path: inset(50%);
57-
white-space: nowrap;
58-
border: 0;
59-
}
60-
</style>

0 commit comments

Comments
 (0)