fix(web): update add-project toggle label in cancel state (#1248)
This commit is contained in:
1 parent
25c7003226
commit
34cef6202b
1 file changed
+4
-2
@@ -1237,7 +1237,7 @@ export default function Sidebar() {
|
||||
render={
|
||||
<button
|
||||
type="button"
|
||||
aria-label="Add project"
|
||||
aria-label={shouldShowProjectPathEntry ? "Cancel add project" : "Add project"}
|
||||
aria-pressed={shouldShowProjectPathEntry}
|
||||
className="inline-flex size-5 cursor-pointer items-center justify-center rounded-md text-muted-foreground/60 transition-colors hover:bg-accent hover:text-foreground"
|
||||
onClick={handleStartAddProject}
|
||||
@@ -1250,7 +1250,9 @@ export default function Sidebar() {
|
||||
}`}
|
||||
/>
|
||||
</TooltipTrigger>
|
||||
<TooltipPopup side="right">Add project</TooltipPopup>
|
||||
<TooltipPopup side="right">
|
||||
{shouldShowProjectPathEntry ? "Cancel add project" : "Add project"}
|
||||
</TooltipPopup>
|
||||
</Tooltip>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user