Skip to content

Commit

Permalink
Fix Kibana FTR shenanigans 😭
Browse files Browse the repository at this point in the history
- turns out removing title was a terrible mistake

- also selenium gets big mad about the overlaid full text, might as well mitigate it now
  • Loading branch information
cee-chen committed Sep 21, 2023
1 parent 82f0792 commit 78f904f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/combo_box/__snapshots__/combo_box.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ exports[`props option.prepend & option.append renders in the options dropdown 1`
id="generated-id__option-0"
role="option"
style="position: absolute; left: 0px; top: 0px; height: 29px; width: 100%;"
title="1"
type="button"
>
<span
Expand Down Expand Up @@ -597,6 +598,7 @@ exports[`props option.prepend & option.append renders in the options dropdown 1`
id="generated-id__option-1"
role="option"
style="position: absolute; left: 0px; top: 29px; height: 29px; width: 100%;"
title="2"
type="button"
>
<span
Expand Down Expand Up @@ -729,6 +731,7 @@ exports[`props options list is rendered 1`] = `
id="generated-id__option-0"
role="option"
style="position: absolute; left: 0px; top: 0px; height: 29px; width: 100%;"
title="Titan"
type="button"
>
<span
Expand Down Expand Up @@ -770,6 +773,7 @@ exports[`props options list is rendered 1`] = `
id="generated-id__option-1"
role="option"
style="position: absolute; left: 0px; top: 29px; height: 29px; width: 100%;"
title="Enceladus"
type="button"
>
<span
Expand Down Expand Up @@ -811,6 +815,7 @@ exports[`props options list is rendered 1`] = `
id="generated-id__option-2"
role="option"
style="position: absolute; left: 0px; top: 58px; height: 29px; width: 100%;"
title="Mimas"
type="button"
>
<span
Expand Down Expand Up @@ -852,6 +857,7 @@ exports[`props options list is rendered 1`] = `
id="generated-id__option-3"
role="option"
style="position: absolute; left: 0px; top: 87px; height: 29px; width: 100%;"
title="Dione"
type="button"
>
<span
Expand Down Expand Up @@ -893,6 +899,7 @@ exports[`props options list is rendered 1`] = `
id="generated-id__option-4"
role="option"
style="position: absolute; left: 0px; top: 116px; height: 29px; width: 100%;"
title="Iapetus"
type="button"
>
<span
Expand Down Expand Up @@ -934,6 +941,7 @@ exports[`props options list is rendered 1`] = `
id="generated-id__option-5"
role="option"
style="position: absolute; left: 0px; top: 145px; height: 29px; width: 100%;"
title="Phoebe"
type="button"
>
<span
Expand Down Expand Up @@ -975,6 +983,7 @@ exports[`props options list is rendered 1`] = `
id="generated-id__option-6"
role="option"
style="position: absolute; left: 0px; top: 174px; height: 29px; width: 100%;"
title="Rhea"
type="button"
>
<span
Expand Down Expand Up @@ -1016,6 +1025,7 @@ exports[`props options list is rendered 1`] = `
id="generated-id__option-7"
role="option"
style="position: absolute; left: 0px; top: 203px; height: 29px; width: 100%;"
title="Pandora is one of Saturn's moons, named for a Titaness of Greek mythology"
type="button"
>
<span
Expand Down Expand Up @@ -1057,6 +1067,7 @@ exports[`props options list is rendered 1`] = `
id="generated-id__option-8"
role="option"
style="position: absolute; left: 0px; top: 232px; height: 29px; width: 100%;"
title="Tethys"
type="button"
>
<span
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
.euiFilterSelectItem__content {
margin-block: 0 !important; // stylelint-disable-line declaration-no-important
}

/* Kibana FTR affordance - without this, Selenium complains about the overlaid
text intercepting the button click. Since `title` is always present, and
users can't highlight or copy combobox options anyway, we might as well
disable clicks on text */
.euiTextTruncate {
pointer-events: none;
}
}

.euiComboBoxOptionsList__empty {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ export class EuiComboBoxOptionsList<T> extends Component<
checked={checked}
showIcons={singleSelection ? true : false}
id={rootId(`_option-${index}`)}
title={label}
{...rest}
>
<span className="euiComboBoxOption__contentWrapper">
Expand Down

0 comments on commit 78f904f

Please sign in to comment.