react-component / tabs

React Tabs
https://tabs.react-component.now.sh/
MIT License
563 stars 232 forks source link

prev and next icon overlaps click region #97

Open breezewish opened 7 years ago

breezewish commented 7 years ago

Their opacity is set to 0 when they are not shown but they are still clickable.

Advice:

.rc-tabs-tab-prev-icon, .rc-tabs-tab-next-icon
    display: none

.rc-tabs-tab-arrow-show
    display: block
paranoidjk commented 7 years ago

PR is welcome.

paranoidjk commented 7 years ago

@breeswish Sorry, i can not find relative code.

Could you provide a reproducible demo?

breezewish commented 7 years ago

http://react-component.github.io/tabs/examples/activeKey.html Try clicking the left most part of "tab 0"

paranoidjk commented 7 years ago

@breeswish I think we need to change those code https://github.com/react-component/tabs/search?utf8=%E2%9C%93&q=opacity%3A+0&type=

Would you like PR?