Skip to content

Commit

Permalink
Merge pull request #17 from primefaces/issue-16
Browse files Browse the repository at this point in the history
Fixed #16 - Dock | Update focus for accessibility
  • Loading branch information
cetincakiroglu authored Jul 6, 2023
2 parents 87b31ef + a1cabf0 commit 0507053
Show file tree
Hide file tree
Showing 21 changed files with 35 additions and 6 deletions.
21 changes: 15 additions & 6 deletions theme-base/components/menu/_dock.scss
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
.p-dock {
.p-dock-list {
.p-dock-list-container {
background: $dockBg;
border: $dockBorder;
padding: $dockPadding;
border-radius: $dockBorderRadius;
}

.p-dock-list {
outline: 0 none;
}
}

.p-dock-item {
padding: $dockItemPadding;
border-radius: $dockItemBorderRadius;

&.p-focus {
@include focused-listitem();
}
}

.p-dock-action {
.p-dock-link {
width: $dockActionWidth;
height: $dockActionHeight;
}

&.p-dock-top,
&.p-dock-bottom {
.p-dock-item-second-prev,
Expand All @@ -38,7 +47,7 @@
.p-dock-item-second-next {
margin: $dockSecondItemsMargin 0;
}

.p-dock-item-prev,
.p-dock-item-next {
margin: $dockFirstItemsMargin 0;
Expand Down Expand Up @@ -83,4 +92,4 @@
}
}
}
}
}
1 change: 1 addition & 0 deletions themes/arya/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,7 @@ $speedDialActionTextHoverColor: $shade900 !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down
1 change: 1 addition & 0 deletions themes/bootstrap4/bootstrap4-dark/_variables_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,7 @@ $speedDialActionTextHoverColor: #fff !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down
1 change: 1 addition & 0 deletions themes/bootstrap4/bootstrap4-light/_variables_light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,7 @@ $speedDialActionTextHoverColor: #fff !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down
1 change: 1 addition & 0 deletions themes/fluent/fluent-light/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,7 @@ $speedDialActionTextHoverColor: #ffffff !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down
1 change: 1 addition & 0 deletions themes/lara/lara-dark/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,7 @@ $speedDialActionTextHoverColor: $shade900 !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down
1 change: 1 addition & 0 deletions themes/lara/lara-light/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@ $speedDialActionTextHoverColor: #fff !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down
1 change: 1 addition & 0 deletions themes/luna/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,7 @@ $speedDialActionTextHoverColor: #fff !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down
1 change: 1 addition & 0 deletions themes/material/material-dark/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@ $speedDialActionTextHoverColor: #212121 !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down
1 change: 1 addition & 0 deletions themes/material/material-light/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@ $speedDialActionTextHoverColor: #fff !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down
1 change: 1 addition & 0 deletions themes/mira/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,7 @@ $speedDialActionTextHoverColor: #fff !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down
1 change: 1 addition & 0 deletions themes/nano/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,7 @@ $speedDialActionTextHoverColor: #fff !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down
1 change: 1 addition & 0 deletions themes/nova/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,7 @@ $speedDialActionTextHoverColor: #fff !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down
1 change: 1 addition & 0 deletions themes/rhea/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,7 @@ $speedDialActionTextHoverColor: #fff !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down
1 change: 1 addition & 0 deletions themes/saga/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@ $speedDialActionTextHoverColor: #fff !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down
1 change: 1 addition & 0 deletions themes/soho/soho-dark/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,7 @@ $speedDialActionTextHoverColor: $shade900 !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down
1 change: 1 addition & 0 deletions themes/soho/soho-light/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,7 @@ $speedDialActionTextHoverColor: #fff !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down
1 change: 1 addition & 0 deletions themes/tailwind/tailwind-light/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,7 @@ $speedDialActionTextHoverColor: #fff !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down
1 change: 1 addition & 0 deletions themes/vela/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,7 @@ $speedDialActionTextHoverColor: $shade900 !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down
1 change: 1 addition & 0 deletions themes/viva/viva-dark/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,7 @@ $speedDialActionTextHoverColor: #fff !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down
1 change: 1 addition & 0 deletions themes/viva/viva-light/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@ $speedDialActionTextHoverColor: #fff !default;
$dockActionWidth: 4rem !default;
$dockActionHeight: 4rem !default;
$dockItemPadding: .5rem !default;
$dockItemBorderRadius:$borderRadius !default;
$dockCurrentItemMargin: 1.5rem !default;
$dockFirstItemsMargin: 1.3rem !default;
$dockSecondItemsMargin: 0.9rem !default;
Expand Down

0 comments on commit 0507053

Please sign in to comment.