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

Selection formatting toolbar #10027

Merged
merged 7 commits into from
May 24, 2024
Merged

Conversation

kazcw
Copy link
Contributor

@kazcw kazcw commented May 21, 2024

Pull Request Description

In the documentation panel, add a toolbar for setting formatting properties of the selected text; it floats next to the selection, and initially supports bold/italic/strikethrough.

Cf. #9969

Important Notes

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    TypeScript,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • Unit tests have been written where possible.

@kazcw kazcw self-assigned this May 21, 2024
@kazcw kazcw added the CI: No changelog needed Do not require a changelog entry for this PR. label May 21, 2024
@AdRiley
Copy link
Member

AdRiley commented May 22, 2024

icons incoming here #10030

Copy link
Contributor

@Frizi Frizi left a comment

Choose a reason for hiding this comment

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

The implementation of the floating menu container should probably be based on floating-ui/vue. We already use that for dropdowns and it should simplify the component logic significantly.

app/gui2/src/components/lexical/FloatingSelectionMenu.vue Outdated Show resolved Hide resolved
app/gui2/src/components/lexical/FloatingSelectionMenu.vue Outdated Show resolved Hide resolved
app/gui2/src/components/lexical/FloatingSelectionMenu.vue Outdated Show resolved Hide resolved
app/gui2/src/components/lexical/FloatingSelectionMenu.vue Outdated Show resolved Hide resolved
@kazcw kazcw requested a review from Frizi May 22, 2024 23:59
@kazcw kazcw mentioned this pull request May 24, 2024
4 tasks
@@ -411,7 +411,6 @@ declare module '@/providers/widgetRegistry' {

.arrow {
position: absolute;
pointer-events: none;
Copy link
Contributor

Choose a reason for hiding this comment

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

This style was intentional, to avoid the arrow blinking when hovered in some cases. Whether or not it is visible should not affect the active drop-down area. What is the intention behind this change?

Copy link
Contributor Author

@kazcw kazcw May 24, 2024

Choose a reason for hiding this comment

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

It's a duplicate.

@kazcw kazcw merged commit 001e8ca into develop May 24, 2024
34 of 35 checks passed
@kazcw kazcw deleted the wip/kw/selection-formatting-toolbar branch May 24, 2024 14:01
MrFlashAccount pushed a commit that referenced this pull request May 25, 2024
* Selection formatting toolbar

* Icons

* Review

* Fix bold+italic rendering

* Preparing for top bar

* Refactor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: No changelog needed Do not require a changelog entry for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants