-
Notifications
You must be signed in to change notification settings - Fork 841
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
changed position to 'relative' #2484
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
What is the reasoning for this change? This content is visually hidden by default, and it makes sense to do as much as we can to make sure it doesn't interfere with visible content in the dom. |
It may not be the way to solve #2477 , but I was aiming at making the |
yeah, I think I jumped to quickly in this one... |
I think it may be the "right" fix but not where we'd want the fix to happen since this change would affect all instances of EuiScreenReaderOnly instead of just the table caption. The EuiScreenReaderOnly component reduces the size of the contents to just 1px so it wouldn't be very detrimental to just change the However, this would mean, we probably should use the SASS mixin instead of the React component where we could then effectively override position property. |
I made a new attempt. Now I change the (by the way, I don't have that much experience with React and SCSS, trying to learn helping Elastic... so please forgive me for the noob mistakes and any help/directions will be much appreciated) |
No apologies necessary. We appreciate any outside contributions and will help out as we can. One of our general rules is to not use "naked" selectors (meaning Hope that makes sense. Yell if it doesn't and we can provide an example to learn. |
@@ -18,6 +18,10 @@ | |||
} | |||
|
|||
} | |||
|
|||
caption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the intention is correct here, but we try to reduce the number of plain element selectors like this by using class names instead. To be sure we don't accidentally change a consumer's intended caption
element, can you add a class name to this element and target it here.
eui/src/components/basic_table/basic_table.js
Line 467 in d5599a4
<caption role="status" aria-relevant="text" aria-live="polite"> |
So that line above would become something like
<caption className="euiBasicTable__caption" role="status" aria-relevant="text" aria-live="polite">
Whoops, sorry for the double response. 😆 |
Thank you guys so much for the guidelines. One thing is to know how to simply use some tech (e.g. SCSS), another completly different thing is to know how to properly used it (patterns, best practices, ...)! +1 for both explanations! So, as I understood I could follow two approachs here: snide's: define a more high level style ( or cchao's: same idea, but instead define the element I decided to take the first road since it looks like it could be more easily used in other use case and also because @snide was the first one to reply... But let me know if you guys prefer the second approach and I'll fix it! Thanks for the very didactic feedback! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment, which I think is slightly better and an easy change. The rest of your changes look good. Don't forget to edit the changelog. Be mindful of the past tense case it is written in. You want to add your change log entry under master.
On those changes this looks mergeable. TY for you contribution.
I notice that CHANGELOG has changed since I first cloned the repo. Can you help me telling what would be the correct way to fetch those changes to my feature branch? (last time I tried to do something like this in a PR for the Kibana project I went from 1 file changed to +1800) My plan was to:
Is that it? |
Never mind... it looks like it was it after all... So, I included the change in changelog and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ffknob ! Sorry it took so long to approve, the team has been away all week. There's just an issue with the Changelog entry. But once that's fixed. We'll get it merged.
Co-Authored-By: Caroline Horn <549577+cchaos@users.noreply.github.com>
…nto fix-eui-basic-table-caption
Jenkins, test this |
Summary
Changed the
position
value of theeuiScreenReaderOnly
class fromabsolute
toinherit
.Checklist