Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Fix Cody Web CSS #64370

Merged
merged 3 commits into from
Aug 8, 2024
Merged

Fix Cody Web CSS #64370

merged 3 commits into from
Aug 8, 2024

Conversation

thenamankumar
Copy link
Member

closes: https://linear.app/sourcegraph/issue/SRCH-866/improve-cody-web-theming-for-consistency-with-rest-of-product

This PR updates the Cody Web CSS based on the changes requested by @rrhyne.

Few buttons implemented in Cody doesn't satisfy the design requirements and do not use the css variable so we couldn't update them easily but rather had to override the styles.

Test plan

Before:
CleanShot 2024-08-08 at 22 53 48@2x

After:
CleanShot 2024-08-08 at 22 54 12@2x

Changelog

  • Make Cody Web styles more accessible.

@thenamankumar thenamankumar added the backport 5.6.x label used to backport PRs to the 5.6.x release branch label Aug 8, 2024
@cla-bot cla-bot bot added the cla-signed label Aug 8, 2024
@thenamankumar thenamankumar requested review from rrhyne and a team August 8, 2024 17:30
Copy link
Contributor

@rrhyne rrhyne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it. Thanks for jumping in and getting this done!

@@ -157,10 +167,71 @@
:global([cmdk-root] input:focus-visible) {
box-shadow: unset !important;
}

// As of Cody Web 0.4.0 the buttons implemented in Cody does not satisfy
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the buttons implemented in Cody does not satisfy the design requirements and it will take longer to design them correctly, then making code changes in Cody, release Cody Web, and then finally update SG. I have been told to override the styles for buttons in SG for the patch release. And the team (me or someone else) will be follow up fixing Cody in next couple of days.

@camdencheek
Copy link
Member

Pulled it down and took a peek. The only thing obvious I noticed was that the @-sign color we changed in the sidebar did not get changed in the /cody/chat page. No need to block merge here, but noting for followup

screenshot-2024-08-08_11-36-30@2x

@thenamankumar
Copy link
Member Author

Pulled it down and took a peek. The only thing obvious I noticed was that the @-sign color we changed in the sidebar did not get changed in the /cody/chat page. No need to block merge here, but noting for followup

screenshot-2024-08-08_11-36-30@2x

updated.

@camdencheek camdencheek force-pushed the naman/cody-web-css-fixes branch from c4e82e1 to ff6a2db Compare August 8, 2024 19:45
@thenamankumar thenamankumar merged commit 2dd38b3 into main Aug 8, 2024
9 checks passed
@thenamankumar thenamankumar deleted the naman/cody-web-css-fixes branch August 8, 2024 19:51
sourcegraph-release-bot pushed a commit that referenced this pull request Aug 8, 2024
closes:
https://linear.app/sourcegraph/issue/SRCH-866/improve-cody-web-theming-for-consistency-with-rest-of-product

This PR updates the Cody Web CSS based on the changes requested by
@rrhyne.

Few buttons implemented in Cody doesn't satisfy the design requirements
and do not use the css variable so we couldn't update them easily but
rather had to override the styles.

## Test plan

Before:
![CleanShot 2024-08-08 at 22 53
48@2x](https://github.com/user-attachments/assets/95e10b42-b740-4663-a761-69449ec62296)

After:
![CleanShot 2024-08-08 at 22 54
12@2x](https://github.com/user-attachments/assets/bffbd10a-c87b-4eca-9582-b23eebccb60e)

## Changelog

- Make Cody Web styles more accessible.

(cherry picked from commit 2dd38b3)
camdencheek pushed a commit that referenced this pull request Aug 8, 2024
closes:
https://linear.app/sourcegraph/issue/SRCH-866/improve-cody-web-theming-for-consistency-with-rest-of-product

This PR updates the Cody Web CSS based on the changes requested by
@rrhyne.

Few buttons implemented in Cody doesn't satisfy the design
requirements and do not use the css variable so we couldn't update
them easily but rather had to override the styles.

## Test plan

Before: 
![CleanShot 2024-08-08 at 22 53
48@2x](https://github.com/user-attachments/assets/95e10b42-b740-4663-a761-69449ec62296)

After:
![CleanShot 2024-08-08 at 22 54
12@2x](https://github.com/user-attachments/assets/bffbd10a-c87b-4eca-9582-b23eebccb60e)


## Changelog

- Make Cody Web styles more accessible. <br> Backport
2dd38b3 from #64370

Co-authored-by: Naman Kumar <naman@outlook.in>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport 5.6.x label used to backport PRs to the 5.6.x release branch cla-signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants