Skip to content

Commit

Permalink
format fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
v-sharmachir committed Jul 26, 2024
1 parent 6c47e11 commit 84bc906
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ export const FailureInstancePanelDetails = NamedFC<FailureInstancePanelDetailsPr
<div className={buttonStyles.buttonsComponent}>
<div className={buttonStyles.buttonCol}>
<Button
className={mergeClasses(buttonStyles.defaultButton, styles.validateCssButton)}
className={mergeClasses(
buttonStyles.defaultButton,
styles.validateCssButton,
)}
onClick={props.onValidateSelector}
disabled={props.path === null}
>
Expand Down
5 changes: 4 additions & 1 deletion src/common/components/copy-issue-details-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ export class CopyIssueDetailsButton extends React.Component<CopyIssueDetailsButt
<>
<Toast ref={this.toastRef} deps={this.props.deps} />
<Button
className={mergeClasses('copy-issue-details-button', styles.detailsDialogButton)}
className={mergeClasses(
'copy-issue-details-button',
styles.detailsDialogButton,
)}
onClick={this.copyButtonClicked}
>
<CopyIcon />
Expand Down
5 changes: 4 additions & 1 deletion src/common/components/selector-input-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ export class SelectorInputList extends React.Component<
className={
!this.state.isTextFieldValueValid
? buttonStyles.buttonDisabled
: mergeClasses(buttonStyles.defaultButton, styles.selectorInputButton)
: mergeClasses(
buttonStyles.defaultButton,
styles.selectorInputButton,
)
}
onClick={this.addSelector}
disabled={!this.state.isTextFieldValueValid}
Expand Down
38 changes: 19 additions & 19 deletions src/common/styles/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,25 @@

@import '../../common/styles/common.scss';

:global(.high-contrast-theme) {
.button-disabled {
font-size: 14px;
font-weight: 600;
height: 32px;
border: 1px solid $button-border;
background-color: $button-background-disable;
color: $neutral-20;
pointer-events: none;
border-radius: 2px;
}

.primary-button {
border: 1px solid $communication-tint-40;
background-color: $communication-tint-40;
color: $always-black;
}
}

.buttons-component {
display: flex;

Expand Down Expand Up @@ -51,25 +70,6 @@
}
}

:global(.high-contrast-theme) {
.button-disabled {
font-size: 14px;
font-weight: 600;
height: 32px;
border: 1px solid $button-border;
background-color: $button-background-disable;
color: $neutral-20;
pointer-events: none;
border-radius: 2px;
}

.primary-button {
border: 1px solid $communication-tint-40;
background-color: $communication-tint-40;
color: $always-black;
}
}

.buttons-component .default-button:hover {
border: 1px solid $neutral-60;
font-weight: 600;
Expand Down
5 changes: 4 additions & 1 deletion src/injected/components/command-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ export const CommandBar = NamedFC<CommandBarProps>('CommandBar', props => {
const renderInspectButton = (): JSX.Element => {
return (
<Button
className={mergeClasses('insights-dialog-button-inspect', styles.detailsDialogButton)}
className={mergeClasses(
'insights-dialog-button-inspect',
styles.detailsDialogButton,
)}
onClick={props.onClickInspectButton}
>
<FileHTMLIcon />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import { Button } from '@fluentui/react-components';
import { Icon } from '@fluentui/react';
import { Button } from '@fluentui/react-components';
import { render } from '@testing-library/react';
import { Requirement } from 'assessments/types/requirement';
import { AssessmentActionMessageCreator } from 'DetailsView/actions/assessment-action-message-creator';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import * as React from 'react';
import {
getMockComponentClassPropsForCall,
mockReactComponents,
useOriginalReactElements,
} from 'tests/unit/mock-helpers/mock-module-helpers';
import { It, IMock, Mock, Times } from 'typemoq';
import { LadyBugSolidIcon } from '../../../../../../src/common/icons/lady-bug-solid-icon';
Expand Down

0 comments on commit 84bc906

Please sign in to comment.