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
…7232) (#7255)

* [Look&Feel] Use small EuiTabs and EuiTabbedContent across the board



* Changeset file for PR #7232 created/updated

---------



(cherry picked from commit 9893ce1)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 18, 2024
1 parent bb595dd commit e5b6bce
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 6 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/7232.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
refactor:
- [Look&Feel] Use small EuiTabs and EuiTabbedContent across the board ([#7232](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7232))
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 e5b6bce

Please sign in to comment.