Skip to content

Commit c9e8d59

Browse files
authored
misc: update code button style for prompt (#32745)
* misc: update code button style for prompt * Update changelog * Update changelog * Update className on Button * Revert change * Add font size to command prompt style * Remove text size class from Code span
1 parent 3f45167 commit c9e8d59

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

cli/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ _Released 10/21/2025 (PENDING)_
1515

1616
**Misc:**
1717

18-
Browser detection in Cypress now always prefers 64-bit browser installs to 32-bit browser installs. Addressed in [#32656](https://github.com/cypress-io/cypress/pull/32656).
18+
- Browser detection in Cypress now always prefers 64-bit browser installs to 32-bit browser installs. Addressed in [#32656](https://github.com/cypress-io/cypress/pull/32656).
19+
- Update code button styles and rename Get Code for Code on cy.prompt. Addressed in [#32745](https://github.com/cypress-io/cypress/pull/32745)
1920

2021
**Dependency Updates:**
2122

packages/reporter/src/commands/command.cy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ describe('commands', () => {
144144
</div>,
145145
)
146146

147-
cy.get('.command-prompt-get-code').should('be.visible').should('have.text', 'Get code')
147+
cy.get('.command-prompt-get-code').should('be.visible').should('have.text', 'Code')
148148
cy.get('.command-prompt-get-code-indicator').should('be.visible')
149149

150150
cy.percySnapshot()
@@ -172,7 +172,7 @@ describe('commands', () => {
172172
</div>,
173173
)
174174

175-
cy.get('.command-prompt-get-code').should('be.visible').should('have.text', 'Get code')
175+
cy.get('.command-prompt-get-code').should('be.visible').should('have.text', 'Code')
176176
cy.get('.command-prompt-get-code-indicator').should('be.visible')
177177

178178
cy.percySnapshot()

packages/reporter/src/commands/command.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ const Command: React.FC<CommandProps> = observer(({ model, aliasesWithDuplicates
554554
size='16'
555555
strokeColor='white'
556556
/>
557-
<span>Get code</span>
557+
<span>Code</span>
558558
</Button>
559559
)}
560560
</div>

packages/reporter/src/commands/commands.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@
104104

105105
.command-prompt-get-code {
106106
cursor: pointer;
107-
font-family: $font-system;
107+
font-family: $font-system;
108+
font-size: 12px;
108109
}
109110
}
110111
}

0 commit comments

Comments
 (0)