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

Disable copy button for signatures #2577

Merged
merged 3 commits into from Jul 27, 2022
Merged

Conversation

IgnatBeresnev
Copy link
Member

@IgnatBeresnev IgnatBeresnev commented Jul 20, 2022

Copy button itself and the script for it are still present for two scenarios:

  • Copying anchor links
  • Copying contents of code blocks. These are usually usage examples, so I think it could be useful

See #2576

@@ -95,7 +95,6 @@ open class HtmlRenderer(
}
node.dci.kind in setOf(ContentKind.Symbol) -> div("symbol $additionalClasses") {
childrenCallback()
if (node.hasStyle(TextStyle.Monospace)) copyButton()
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the only real change in this PR. The rest is either formatting or to make tests pass

@IgnatBeresnev IgnatBeresnev mentioned this pull request Jul 20, 2022
Copy link
Member

@vmishenev vmishenev left a comment

Choose a reason for hiding this comment

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

I suppose some styles, that are related to symbol, are redundant.

@IgnatBeresnev
Copy link
Member Author

Indeed, hopefully I got all of it

@vmishenev
Copy link
Member

Indeed, hopefully I got all of it

And here

@IgnatBeresnev
Copy link
Member Author

And here

Are you sure you're looking at the right commit? Or maybe the link is wrong? See https://github.com/Kotlin/dokka/pull/2577/files#diff-316e3e9b3d50ff73dcc848844e5eaac72b2d38b7f1e84dca8a383a8b2c5a162c

@vmishenev
Copy link
Member

My fault, the link is wrong.

.symbol:hover .copy-popup-wrapper.active-popup,

@IgnatBeresnev
Copy link
Member Author

Jesus :) Yeah, removed

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.

None yet

2 participants