Skip to content

Commit

Permalink
Remove step hover/selection styles
Browse files Browse the repository at this point in the history
  • Loading branch information
tidy-dev committed Nov 9, 2021
1 parent 01cf04a commit 2b513a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/src/ui/check-runs/ci-check-run-actions-logs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
isFailure,
RefCheckOutputType,
} from '../../lib/ci-checks/ci-checks'
import { enableCICheckRunsLogs } from '../../lib/feature-flag'

const MIN_LOG_LINE_NUMBER_WIDTH = 25 // makes numbers line up with chevron
const MAX_LOG_LINE_NUMBER_WIDTH = 100 // arbitrarily chosen
Expand Down Expand Up @@ -294,8 +295,8 @@ export class CICheckRunActionLogs extends React.PureComponent<
index: number
): JSX.Element {
const headerClassNames = classNames('ci-check-run-log-step-header', {
open: showLogs,
skipped: isSkipped,
open: showLogs && enableCICheckRunsLogs(),
skipped: isSkipped || !enableCICheckRunsLogs(),
})

return (
Expand All @@ -305,7 +306,7 @@ export class CICheckRunActionLogs extends React.PureComponent<
ref={this.onStepHeaderRef(index)}
>
<div className="ci-check-run-log-step-header-container">
{!isSkipped ? (
{!isSkipped && enableCICheckRunsLogs() ? (
<Octicon
className="log-step-toggled-indicator"
symbol={
Expand Down

0 comments on commit 2b513a8

Please sign in to comment.