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

feat: add CodeMirror engine for codeEditor component #517

Open
wants to merge 24 commits into
base: develop
Choose a base branch
from

Conversation

RohitRaj011
Copy link
Contributor

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

package.json Show resolved Hide resolved
src/Shared/types.ts Show resolved Hide resolved
src/Common/CodeMirror/CodeEditor.components.tsx Outdated Show resolved Hide resolved
src/Common/CodeEditorWrapper/CodeEditorWrapper.tsx Outdated Show resolved Hide resolved
src/Common/CodeMirror/codeEditor.scss Outdated Show resolved Hide resolved
src/Shared/Components/Button/constants.ts Outdated Show resolved Hide resolved
src/Common/CodeEditor/index.ts Show resolved Hide resolved
src/Common/CodeEditor/types.ts Outdated Show resolved Hide resolved
src/Common/CodeEditor/types.ts Show resolved Hide resolved
src/Common/CodeEditor/types.ts Outdated Show resolved Hide resolved
src/Common/CodeEditor/CodeEditor.tsx Outdated Show resolved Hide resolved
src/Common/CodeEditor/CodeEditor.tsx Outdated Show resolved Hide resolved
src/Common/CodeEditor/CodeEditor.tsx Outdated Show resolved Hide resolved
src/Common/CodeEditor/CodeEditor.tsx Outdated Show resolved Hide resolved
src/Common/CodeEditor/CodeEditor.tsx Outdated Show resolved Hide resolved
Comment on lines 298 to 314
&__search {
&__field-container {
display: flex;
align-items: center;
gap: 4px;
width: 220px;
padding: 3px 5px;
border-radius: 4px;
border: 1px solid var(--N200);
line-height: 18px;

&:focus-within:not(:has(div:focus)) {
border-color: var(--B500);
}
}

&__replace-expand-button {
Copy link
Contributor

Choose a reason for hiding this comment

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

These 2 doesn't satisfy the BEM convention

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants