-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat: LEAP-1467: Adapt Textarea result container to new style #6413
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
Merged
ricardoantoniocm
merged 14 commits into
develop
from
fb-leap-1467/fe-adapt-textarea-result-container
Sep 25, 2024
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
0b4f7ef
* Improves the look and feel of the Textbox results container to matc…
ricardoantoniocm 3ccf063
Update web/libs/editor/src/components/HtxTextBox/HtxTextBox.jsx
bmartel 952059d
* Replaces icons for edit and delete actions
ricardoantoniocm d0cd1a9
Update web/libs/editor/src/assets/icons/edit.svg
yyassi-heartex e07b41d
* Fixes currentColor casing on SVGs
ricardoantoniocm b5095c8
* Replaces Tooltip, Element components with Editor Button
ricardoantoniocm a08b68b
* Imports BEM
ricardoantoniocm 1f9dccd
* Linting fixes
ricardoantoniocm f32d449
Update web/libs/editor/src/components/HtxTextBox/HtxTextBox.jsx
ricardoantoniocm 2b1f7e3
Removes unnecessary wildcard selector
ricardoantoniocm ec32661
Adds aria-label parameters back to buttons
ricardoantoniocm 465c884
fixint textarea test
yyassi-heartex 1728283
lint cleanup
yyassi-heartex 9f6eed3
Removed unnecesary important rules
ricardoantoniocm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
web/libs/editor/src/regions/TextAreaRegion/TextAreaRegion.module.scss
This file was deleted.
Oops, something went wrong.
67 changes: 67 additions & 0 deletions
67
web/libs/editor/src/regions/TextAreaRegion/TextAreaRegion.scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
.mark { | ||
background-color: var(--surface-surface); | ||
border: 1px solid var(--surface-border); | ||
border-radius: var(--radius-small); | ||
margin: 0 var(--spacing-small) 0 0; | ||
padding: var(--spacing-small) var(--spacing-medium); | ||
white-space: pre-line; | ||
box-shadow: 0 4px 12px 0 var(--black_4), 0 1px 2px 0 var(--black_10); | ||
flex-grow: 1; | ||
|
||
&.ant-typography { | ||
margin-bottom: 0; | ||
} | ||
|
||
&.selected { | ||
border: 1px solid var(--grape_500); | ||
background-color: var(--primary-bright-secondary); | ||
} | ||
|
||
&.highlighted { | ||
border: 1px dashed var(--grape_500); | ||
background-color: var(--primary-bright-secondary); | ||
} | ||
|
||
&.relation { | ||
cursor: crosshair; | ||
} | ||
} | ||
|
||
.row { | ||
display: flex; | ||
margin-bottom: var(--spacing-medium); | ||
flex-wrap: nowrap; | ||
align-items: center; | ||
gap: var(--spacing-small); | ||
|
||
.button { | ||
display: flex; | ||
flex: 0 0 32px; | ||
|
||
&:hover { | ||
background-color: var(--sand_200); | ||
} | ||
|
||
&_look { | ||
&_danger { | ||
&:hover { | ||
background-color: var(--red_1); | ||
} | ||
} | ||
} | ||
} | ||
|
||
// fix antd styles to resize textarea container and fix paddings | ||
div[class~="ant-typography-edit-content"] { | ||
flex-grow: 1; | ||
left: -1px; | ||
padding: 0; | ||
margin-top: -1px; | ||
margin-right: 0; | ||
|
||
textarea { | ||
// the same as in .mark, its padding set to 0 | ||
padding: var(--spacing-small) var(--spacing-medium); | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.