Skip to content

Commit

Permalink
undoing euiButtonIcon change and fixing euiButtonGroup styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Michail Yasonik committed Mar 31, 2020
1 parent 8402c4e commit 7aa7ea5
Show file tree
Hide file tree
Showing 32 changed files with 577 additions and 721 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ exports[`CollapsedItemActions render 1`] = `
class="euiToolTipAnchor"
>
<button
aria-label="All actions"
class="euiButtonIcon euiButtonIcon--text"
data-test-subj="euiCollapsedItemActionsButton"
type="button"
Expand All @@ -21,11 +22,6 @@ exports[`CollapsedItemActions render 1`] = `
class="euiButtonIcon__icon"
data-euiicon-type="boxesHorizontal"
/>
<span
class="euiScreenReaderOnly"
>
All actions
</span>
</button>
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ exports[`DefaultItemAction render - icon 1`] = `
position="top"
>
<EuiButtonIcon
aria-label="action1"
color="primary"
iconType="trash"
isDisabled={false}
label="action1"
onClick={[Function]}
/>
</EuiToolTip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,14 +437,15 @@ exports[`EuiInMemoryTable behavior pagination 1`] = `
token="euiPagination.previousPage"
>
<EuiButtonIcon
aria-label="Previous page"
color="text"
data-test-subj="pagination-button-previous"
disabled={false}
iconType="arrowLeft"
label="Previous page"
onClick={[Function]}
>
<button
aria-label="Previous page"
className="euiButtonIcon euiButtonIcon--text"
data-test-subj="pagination-button-previous"
disabled={false}
Expand All @@ -464,13 +465,6 @@ exports[`EuiInMemoryTable behavior pagination 1`] = `
size="m"
/>
</EuiIcon>
<EuiScreenReaderOnly>
<span
className="euiScreenReaderOnly"
>
Previous page
</span>
</EuiScreenReaderOnly>
</button>
</EuiButtonIcon>
</EuiI18n>
Expand Down Expand Up @@ -571,14 +565,15 @@ exports[`EuiInMemoryTable behavior pagination 1`] = `
token="euiPagination.nextPage"
>
<EuiButtonIcon
aria-label="Next page"
color="text"
data-test-subj="pagination-button-next"
disabled={true}
iconType="arrowRight"
label="Next page"
onClick={[Function]}
>
<button
aria-label="Next page"
className="euiButtonIcon euiButtonIcon--text"
data-test-subj="pagination-button-next"
disabled={true}
Expand All @@ -598,13 +593,6 @@ exports[`EuiInMemoryTable behavior pagination 1`] = `
size="m"
/>
</EuiIcon>
<EuiScreenReaderOnly>
<span
className="euiScreenReaderOnly"
>
Next page
</span>
</EuiScreenReaderOnly>
</button>
</EuiButtonIcon>
</EuiI18n>
Expand Down
2 changes: 1 addition & 1 deletion src/components/basic_table/collapsed_item_actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class CollapsedItemActions<T> extends Component<
{(allActions: string) => (
<EuiButtonIcon
className={className}
label={allActions}
aria-label={allActions}
iconType="boxesHorizontal"
color="text"
isDisabled={allDisabled}
Expand Down
2 changes: 1 addition & 1 deletion src/components/basic_table/default_item_action.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const DefaultItemAction = <T extends {}>({
button = (
<EuiButtonIcon
className={className}
label={action.name}
aria-label={action.name}
isDisabled={!enabled}
color={color}
iconType={icon}
Expand Down
6 changes: 4 additions & 2 deletions src/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
}
}

&:disabled {
&:disabled,
&.euiButton--disabled {
color: $euiButtonColorDisabledText;
border-color: $euiButtonColorDisabled;
pointer-events: none;
Expand Down Expand Up @@ -138,7 +139,8 @@
}

// Fix ghost/disabled look specifically
.euiButton:disabled.euiButton--ghost {
.euiButton:disabled.euiButton--ghost,
.euiButton--disabled.euiButton--ghost, {
&,
&:hover,
&:focus {
Expand Down
Loading

0 comments on commit 7aa7ea5

Please sign in to comment.