Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading