mirror of
https://github.com/zhigang1992/react.git
synced 2026-03-27 22:54:38 +08:00
fix(tabs): remove the scrollbar of the tab container (#460)
* fix(tabs): remove the scrollbar of the tab container * test(tabs): update snapshots
This commit is contained in:
@@ -4,7 +4,6 @@ exports[`Tabs should render correctly 1`] = `
|
||||
"<div class=\\"tabs \\"><header class=\\"\\"><div class=\\"tab \\" role=\\"button\\">label1</div><div class=\\"tab \\" role=\\"button\\">label2</div></header><div class=\\"content\\"></div><style>
|
||||
.tabs {
|
||||
width: initial;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
header {
|
||||
@@ -87,7 +86,6 @@ exports[`Tabs should work correctly with different styles 1`] = `
|
||||
"<div class=\\"tabs \\"><header class=\\"hide-divider\\"><div class=\\"tab \\" role=\\"button\\">label1</div></header><div class=\\"content\\"></div><style>
|
||||
.tabs {
|
||||
width: initial;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
header {
|
||||
|
||||
@@ -87,7 +87,6 @@ const Tabs: React.FC<React.PropsWithChildren<TabsProps>> = ({
|
||||
<style jsx>{`
|
||||
.tabs {
|
||||
width: initial;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
header {
|
||||
|
||||
Reference in New Issue
Block a user