diff --git a/frontend/src/pages/Dashboard.jsx b/frontend/src/pages/Dashboard.jsx
index a1439bc..ab0d3f1 100644
--- a/frontend/src/pages/Dashboard.jsx
+++ b/frontend/src/pages/Dashboard.jsx
@@ -342,9 +342,16 @@ const Dashboard = () => {
);
case "totalHosts":
return (
-
{
+ if (e.key === "Enter" || e.key === " ") {
+ e.preventDefault();
+ handleTotalHostsClick();
+ }
+ }}
>
@@ -359,14 +366,21 @@ const Dashboard = () => {
-
+
);
case "hostsNeedingUpdates":
return (
-
{
+ if (e.key === "Enter" || e.key === " ") {
+ e.preventDefault();
+ handleHostsNeedingUpdatesClick();
+ }
+ }}
>
@@ -381,14 +395,21 @@ const Dashboard = () => {
-
+
);
case "totalOutdatedPackages":
return (
-
{
+ if (e.key === "Enter" || e.key === " ") {
+ e.preventDefault();
+ handleOutdatedPackagesClick();
+ }
+ }}
>
@@ -403,14 +424,21 @@ const Dashboard = () => {
-
+
);
case "securityUpdates":
return (
-
{
+ if (e.key === "Enter" || e.key === " ") {
+ e.preventDefault();
+ handleSecurityUpdatesClick();
+ }
+ }}
>
@@ -425,14 +453,21 @@ const Dashboard = () => {
-
+
);
case "totalHostGroups":
return (
-
{
+ if (e.key === "Enter" || e.key === " ") {
+ e.preventDefault();
+ handleHostGroupsClick();
+ }
+ }}
>
@@ -447,14 +482,21 @@ const Dashboard = () => {
-
+
);
case "totalUsers":
return (
-
{
+ if (e.key === "Enter" || e.key === " ") {
+ e.preventDefault();
+ handleUsersClick();
+ }
+ }}
>
@@ -469,14 +511,21 @@ const Dashboard = () => {
-
+
);
case "totalRepos":
return (
-
{
+ if (e.key === "Enter" || e.key === " ") {
+ e.preventDefault();
+ handleRepositoriesClick();
+ }
+ }}
>
@@ -491,18 +540,25 @@ const Dashboard = () => {
-
+
);
case "erroredHosts":
return (
-
0
? "bg-danger-50 border-danger-200"
: "bg-success-50 border-success-200"
}`}
onClick={handleErroredHostsClick}
+ onKeyDown={(e) => {
+ if (e.key === "Enter" || e.key === " ") {
+ e.preventDefault();
+ handleErroredHostsClick();
+ }
+ }}
>
-