[Discover] Deangularize Skip to bottom button#69811
Conversation
|
Pinging @elastic/kibana-app (Team:KibanaApp) |
kertal
left a comment
There was a problem hiding this comment.
Code LGTM, this is a great debut in the discover world 🥇 . nice 👁️ for detail. About the styling for small screen, don't think we need adaption here, button won't be necessary or will be solved differently once data grid will be the center of Discover, which will take some time. #67259.
There was a problem hiding this comment.
EUI actually has an EuiSkipLink precisely for this use case that would be useful here without needing the extra CSS to push it off screen as EuiSkipLink will automatically hide/show when tabbing to it. I would also make the text more descriptive than "bottom".
| <EuiButton onClick={onClick} iconType="arrowDown" className="dscSkipButton"> | |
| <FormattedMessage id="discover.skipToBottomButtonLabel" defaultMessage="Skip to bottom" /> | |
| </EuiButton> | |
| <EuiSkipLink size="s" onClick={onClick} className="dscSkipButton" destinationId=""> | |
| <FormattedMessage id="discover.skipToBottomButtonLabel" defaultMessage="Skip to table" /> | |
| </EuiSkipLink> |
There was a problem hiding this comment.
Sounds good. I looked in the button section without searching for Skip effectively in the doc. Good suggestion, I'm going to use it.
There was a problem hiding this comment.
nice, didn't know this component 👍
There was a problem hiding this comment.
Then this would simply become.
| left: -10000px; | |
| top: $euiSizeXS; | |
| right: $euiSizeXS; | |
| top: $euiSizeXS; |
And you can delete everything below this.
|
Pushed suggestion fixes. The Safari fix in this PR has been removed and rather fixed up the line on the EUI |
cchaos
left a comment
There was a problem hiding this comment.
A couple last suggestions
There was a problem hiding this comment.
| right: $euiSizeXS; | |
| right: $euiSizeM; |
There was a problem hiding this comment.
This symbol actually adds a line of whitespace, is this intended?
There was a problem hiding this comment.
Yes. From my tests Safari won't scroll to the marker if empty. For this reason I had to add this empty space character to the node.
There was a problem hiding this comment.
We usually reserve the arrow icons to indicate popovers or disclosure style content not directional. I think it can be omitted entirely.
| iconType="arrowDown" |
There was a problem hiding this comment.
Ah ok. I've set it to match the previous button, but if that is not longer required I'll remove it.
2db9cbf to
5a35009
Compare
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
checked again, still LGTM 👍 |
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
cchaos
left a comment
There was a problem hiding this comment.
LGTM! Safari and TS fixes for EuiSkipLink will get updated with the latest EUI
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
…ata-streams * 'master' of github.com:elastic/kibana: (50 commits) [Logs UI] [Alerting] "Group by" functionality (elastic#68250) [Discover] Deangularize Skip to bottom button (elastic#69811) Implement recursive plugin discovery (elastic#68811) Use ts-expect-error in platform code (elastic#69883) [SIEM][Detection Engine][Lists] Moves getQueryFilter to common folder for use by both front and backend [Ingest Manager][SECURITY SOLUTION] adjust config reassign link and add roundtrip to Reassignment flow (elastic#70208) [Security][Lists] Add API functions and react hooks for value list APIs (elastic#69603) [ILM] Fix bug when clearing priority field (elastic#70154) [Platform][Security] Updates cluster_manager ignorePaths to include security scripts (elastic#70139) [IngestManager] Allow to filter agent by packages (elastic#69731) [code coverage] exclude folders: test_helpers, tests_bundle (elastic#70199) [Metrics UI] UX improvements for saved views (elastic#69910) [APM] docs: unique transaction troubleshooting (elastic#69831) Cross cluster search functional test with minimun privileges assigned to the test_user (elastic#70007) [Maps] choropleth layer wizard (elastic#69699) Make custom errors by extending Error (elastic#69966) [Ingest Manager] Support updated package output structure (elastic#69864) Resolver test coverage (elastic#70246) Async Discover search test (elastic#64388) [ui-shared-deps] include styled-components (elastic#69322) ... # Conflicts: # x-pack/plugins/snapshot_restore/server/types.ts
…bana into alerting/consumer-based-rbac * 'alerting/consumer-based-rbac' of github.com:gmmorris/kibana: (49 commits) [Discover] Deangularize Skip to bottom button (elastic#69811) Implement recursive plugin discovery (elastic#68811) Use ts-expect-error in platform code (elastic#69883) [SIEM][Detection Engine][Lists] Moves getQueryFilter to common folder for use by both front and backend [Ingest Manager][SECURITY SOLUTION] adjust config reassign link and add roundtrip to Reassignment flow (elastic#70208) [Security][Lists] Add API functions and react hooks for value list APIs (elastic#69603) [ILM] Fix bug when clearing priority field (elastic#70154) [Platform][Security] Updates cluster_manager ignorePaths to include security scripts (elastic#70139) [IngestManager] Allow to filter agent by packages (elastic#69731) [code coverage] exclude folders: test_helpers, tests_bundle (elastic#70199) [Metrics UI] UX improvements for saved views (elastic#69910) [APM] docs: unique transaction troubleshooting (elastic#69831) Cross cluster search functional test with minimun privileges assigned to the test_user (elastic#70007) [Maps] choropleth layer wizard (elastic#69699) Make custom errors by extending Error (elastic#69966) [Ingest Manager] Support updated package output structure (elastic#69864) Resolver test coverage (elastic#70246) Async Discover search test (elastic#64388) [ui-shared-deps] include styled-components (elastic#69322) SECURITY-ENDPOINT: add host properties (elastic#70238) ...
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Summary
This PR contains the following features/fixes:
dscSkipButtonclassNote: To test on Safari make sure to enable Tab behaviour in
Preferences > Advanced > Press Tab to highlight...Updated screenshots
Desktop:

Smartphone:

Tablet:

Checklist
Delete any items that are not applicable to this PR.