Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved role=main logic into EuiPageComponent #47

Merged

Conversation

chandlerprall
Copy link

No description provided.

Comment on lines +62 to +63
// EuiPanel switches to a button element if onClick is provided
const role = _role ?? rest.onClick ? undefined : 'main';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OOH you just meant actually adding the role="main" portion, not trying to get EuiPanel to render as a <main> element.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I think I need to actually omit the onClick anyway for page content. That should never be clickable 😆 .

Copy link
Owner

@cchaos cchaos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙇 I'm going to merge this in, then omit some of those panel props.

@cchaos cchaos merged commit 13c29cf into cchaos:feat/bottom_bar_in_page Mar 31, 2021
@chandlerprall chandlerprall deleted the feat/bottom_bar_in_page branch March 31, 2021 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants