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

Use smaller and compressed varients of buttons and form components (#7304) #7417

Merged
merged 1 commit into from
Jul 23, 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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
"dependencies": {
"@aws-crypto/client-node": "^3.1.1",
"@elastic/datemath": "5.0.3",
"@elastic/eui": "npm:@opensearch-project/oui@1.5.1",
"@elastic/eui": "npm:@opensearch-project/oui@1.7.0",
"@elastic/good": "^9.0.1-kibana3",
"@elastic/numeral": "npm:@amoo-miki/[email protected]",
"@elastic/request-crypto": "2.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { FormattedMessage, I18nProvider } from '@osd/i18n/react';
import { BrowserRouter as Router } from 'react-router-dom';

import {
EuiButton,
EuiSmallButton,
EuiHorizontalRule,
EuiPage,
EuiPageBody,
Expand Down
2 changes: 1 addition & 1 deletion packages/osd-ui-framework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"enzyme-adapter-react-16": "^1.9.1"
},
"devDependencies": {
"@elastic/eui": "npm:@opensearch-project/oui@1.5.1",
"@elastic/eui": "npm:@opensearch-project/oui@1.7.0",
"@osd/babel-preset": "1.0.0",
"@osd/optimizer": "1.0.0",
"comment-stripper": "^0.0.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/osd-ui-shared-deps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@elastic/charts": "31.1.0",
"@elastic/eui": "npm:@opensearch-project/oui@1.5.1",
"@elastic/eui": "npm:@opensearch-project/oui@1.7.0",
"@elastic/numeral": "npm:@amoo-miki/[email protected]",
"@opensearch/datemath": "5.0.3",
"@osd/i18n": "1.0.0",
Expand Down

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

12 changes: 6 additions & 6 deletions src/core/public/fatal_errors/fatal_errors_screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
*/

import {
EuiButton,
EuiButtonEmpty,
EuiSmallButton,
EuiSmallButtonEmpty,
EuiCallOut,
EuiCodeBlock,
EuiEmptyPrompt,
Expand Down Expand Up @@ -125,7 +125,7 @@ export class FatalErrorsScreen extends React.Component<Props, State> {
</EuiText>
}
actions={[
<EuiButton
<EuiSmallButton
color="primary"
fill
onClick={this.onClickClearSession}
Expand All @@ -135,13 +135,13 @@ export class FatalErrorsScreen extends React.Component<Props, State> {
id="core.fatalErrors.clearYourSessionButtonLabel"
defaultMessage="Clear your session"
/>
</EuiButton>,
<EuiButtonEmpty onClick={this.onClickGoBack} data-test-subj="goBack">
</EuiSmallButton>,
<EuiSmallButtonEmpty onClick={this.onClickGoBack} data-test-subj="goBack">
<FormattedMessage
id="core.fatalErrors.goBackButtonLabel"
defaultMessage="Go back"
/>
</EuiButtonEmpty>,
</EuiSmallButtonEmpty>,
]}
/>
{this.state.errors.map((error, i) => (
Expand Down
5 changes: 3 additions & 2 deletions src/core/public/notifications/toasts/error_toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import ReactDOM from 'react-dom';

import {
EuiSmallButton,
EuiButton,
EuiCallOut,
EuiCodeBlock,
Expand Down Expand Up @@ -107,12 +108,12 @@
)}
</EuiModalBody>
<EuiModalFooter>
<EuiButton onClick={() => modal.close()} fill>
<EuiSmallButton onClick={() => modal.close()} fill>

Check warning on line 111 in src/core/public/notifications/toasts/error_toast.tsx

View check run for this annotation

Codecov / codecov/patch

src/core/public/notifications/toasts/error_toast.tsx#L111

Added line #L111 was not covered by tests
<FormattedMessage
id="core.notifications.errorToast.closeModal"
defaultMessage="Close"
/>
</EuiButton>
</EuiSmallButton>
</EuiModalFooter>
</I18nContext>
</React.Fragment>
Expand Down
Loading
Loading