Skip to content

Commit

Permalink
[Look&Feel] Use small EuiTabs and EuiTabbedContent across the board
Browse files Browse the repository at this point in the history
Signed-off-by: Zhongnan Su <[email protected]>
  • Loading branch information
zhongnansu committed Jul 12, 2024
1 parent 0215e32 commit 50c6db3
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/plugins/dev_tools/public/application.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function DevToolsWrapper({

return (
<main className="devApp">
<EuiTabs className="devAppTabs">
<EuiTabs size="s" className="devAppTabs">
{devTools.map((currentDevTool) => (
<EuiToolTip content={currentDevTool.tooltipContent} key={currentDevTool.id}>
<EuiTab
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function DocViewer(renderProps: DocViewRenderProps) {

return (
<div className="osdDocViewer">
<EuiTabbedContent tabs={tabs} />
<EuiTabbedContent tabs={tabs} size="s" />
</div>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ export class FeatureDirectory extends React.Component {
</h1>
</EuiTitle>
<EuiSpacer size="m" />
<EuiTabs className="homeDirectoryTabs">{this.renderTabs()}</EuiTabs>
<EuiTabs size="s" className="homeDirectoryTabs">
{this.renderTabs()}
</EuiTabs>
<EuiSpacer />
<EuiFlexGrid columns={4}>{this.renderDirectories()}</EuiFlexGrid>
</EuiPageBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ class TutorialDirectoryUi extends React.Component {
{this.renderHeader()}
<EuiSpacer size="m" />
{this.renderDataSourceSelector()}
<EuiTabs>{this.renderTabs()}</EuiTabs>
<EuiTabs size="s">{this.renderTabs()}</EuiTabs>
<EuiSpacer />
{this.renderTabContent()}
</EuiPageBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ export function Tabs({ indexPattern, saveIndexPattern, fields, history, location
setSelectedTabId(tab.id);
syncingStateFunc.setCurrentTab(tab.id);
}}
size="s"
/>
);
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const ScriptingHelpFlyout: React.FC<ScriptingHelpFlyoutProps> = ({
return isVisible ? (
<EuiFlyout onClose={onClose} data-test-subj="scriptedFieldsHelpFlyout">
<EuiFlyoutBody>
<EuiTabbedContent tabs={tabs} initialSelectedTab={tabs[0]} />
<EuiTabbedContent tabs={tabs} initialSelectedTab={tabs[0]} size="s" />
</EuiFlyoutBody>
</EuiFlyout>
) : null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const VisPicker = injectI18n(function (props) {
);
});

return <EuiTabs>{tabs}</EuiTabs>;
return <EuiTabs size="s">{tabs}</EuiTabs>;
});

VisPicker.propTypes = {
Expand Down

0 comments on commit 50c6db3

Please sign in to comment.