mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-23 15:41:33 +00:00
Button for selected screen looks 'selected', not 'disabled'
This commit is contained in:
@@ -46,6 +46,13 @@ button:disabled {
|
|||||||
cursor: auto;
|
cursor: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button.selected {
|
||||||
|
cursor: auto;
|
||||||
|
color: black;
|
||||||
|
border-color: black;
|
||||||
|
border-width: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
.clickable {
|
.clickable {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<button @click="selectScreen('inbox');"
|
<button @click="selectScreen('inbox');"
|
||||||
:disabled="selectedScreen == 'inbox'">
|
:class="[selectedScreen == 'inbox' ? 'selected' : '']">
|
||||||
Inbox View
|
Inbox View
|
||||||
</button>
|
</button>
|
||||||
<button @click="selectScreen('archive')"
|
<button @click="selectScreen('archive')"
|
||||||
:disabled="selectedScreen == 'archive'">
|
:class="[selectedScreen == 'archive' ? 'selected' : '']">
|
||||||
Archived View
|
Archived View
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user