Skip to content

Commit

Permalink
Fix #74 - OrderList | Accessibility Enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
gucal committed Nov 13, 2023
1 parent f0ef59b commit cfdc002
Showing 1 changed file with 13 additions and 46 deletions.
59 changes: 13 additions & 46 deletions theme-base/components/data/_orderlist.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,67 +12,45 @@
color: $panelHeaderTextColor;
border: $panelHeaderBorder;
padding: $panelHeaderPadding;
font-weight: $panelHeaderFontWeight;
border-bottom: 0 none;
border-top-right-radius: $borderRadius;
border-top-left-radius: $borderRadius;

.p-orderlist-title {
font-weight: $panelHeaderFontWeight;
}
}

.p-orderlist-filter-container {
padding: $panelHeaderPadding;
background: $panelContentBg;
border: $panelHeaderBorder;
border-bottom: 0 none;

.p-orderlist-filter-input {
padding-right: nth($inputPadding, 2) + $primeIconFontSize;
}

.p-orderlist-filter-icon {
right: nth($inputPadding, 2);
color: $inputIconColor;
}
}

.p-orderlist-list {
border: $panelContentBorder;
background: $panelContentBg;
color: $panelContentTextColor;
padding: $inputListPadding;
border-bottom-right-radius: $borderRadius;
border-bottom-left-radius: $borderRadius;
outline: 0 none;

.p-orderlist-item {
padding: $inputListItemPadding;
margin: $inputListItemMargin;
border: $inputListItemBorder;
color: $inputListItemTextColor;
background: $inputListItemBg;
transition: $listItemTransition;
transition: transform $transitionDuration, $listItemTransition;

&:focus {
@include focused-listitem();
&:not(.p-highlight):hover {
background: $inputListItemHoverBg;
color: $inputListItemTextHoverColor;
}

&.p-focus {
color: $inputListItemTextFocusColor;
background: $inputListItemFocusBg;
}

&.p-highlight {
color: $highlightTextColor;
background: $highlightBg;
}
}

.p-orderlist-empty-message {
padding: $inputListItemPadding;
color: $inputListItemTextColor;
}

&:not(.cdk-drop-list-dragging) {
.p-orderlist-item {
&:not(.p-highlight):hover {
background: $inputListItemHoverBg;
color: $inputListItemTextHoverColor;
&.p-focus {
background: $highlightFocusBg;
}
}
}
Expand All @@ -89,15 +67,4 @@
}
}
}
}

.p-orderlist-item {
&.cdk-drag-preview {
padding: $inputListItemPadding;
box-shadow: $inputOverlayShadow;
border: $inputListItemBorder;
color: $inputListItemTextColor;
background: $panelContentBg;
margin: 0;
}
}

0 comments on commit cfdc002

Please sign in to comment.