react-virtualized icon indicating copy to clipboard operation
react-virtualized copied to clipboard

Disable `outline` on Grid component

Open nhducit opened this issue 10 years ago • 5 comments

I think we should disable outline on Grid class. If it's fine, I will submit a pull request.

screen shot 2016-09-08 at 2 16 10 pm

nhducit avatar Sep 08 '16 07:09 nhducit

@nhducit Outline is an important usability mechanism for keyboard-only users. As such, I want it to be enabled by default for focusable elements.

You're free to disable it yourself via a custom className or inline style (eg style={{ outline: 'none' }}). react-virtualized supports both. :)

bvaughn avatar Sep 08 '16 07:09 bvaughn

@bvaughn It's OK. Thanks a lot ^^

nhducit avatar Sep 08 '16 07:09 nhducit

No problem. 😄

You aren't the first one to ask this! I just think it's important that react-virtualized be as accessibility-friendly as possible by default. People can choose to disable accessibility features (like outline) if they think it's appropriate to their applicate. 😁

bvaughn avatar Sep 08 '16 07:09 bvaughn

Is there a way to disable a MultiGrid's child Grid's outline?

zhuhan0 avatar Jun 16 '17 22:06 zhuhan0

Never mind. Fixed by setting styleBottomRightGrid

zhuhan0 avatar Jun 16 '17 22:06 zhuhan0