diff --git a/packages/core/src/browser/style/index.css b/packages/core/src/browser/style/index.css
index 1b23814de8c0f..6b99cbb27913e 100644
--- a/packages/core/src/browser/style/index.css
+++ b/packages/core/src/browser/style/index.css
@@ -161,7 +161,7 @@ blockquote {
button.theia-button, .theia-button {
border: none;
- color: var(--theia-button-foreground) !important;
+ color: var(--theia-button-foreground);
background-color: var(--theia-button-background);
min-width: 65px;
outline: none;
diff --git a/packages/plugin-ext/src/main/browser/comments/comment-thread-widget.tsx b/packages/plugin-ext/src/main/browser/comments/comment-thread-widget.tsx
index e95ffb1e162b5..0cd1b610388ce 100644
--- a/packages/plugin-ext/src/main/browser/comments/comment-thread-widget.tsx
+++ b/packages/plugin-ext/src/main/browser/comments/comment-thread-widget.tsx
@@ -71,7 +71,7 @@ export class CommentThreadWidget extends BaseWidget {
if (state === CommentThreadCollapsibleState.Expanded && !this.isExpanded) {
const lineNumber = this._commentThread.range.startLineNumber;
- this.display({ afterLineNumber: lineNumber, afterColumn: 1, heightInLines: 2});
+ this.display({ afterLineNumber: lineNumber, afterColumn: 1, heightInLines: 2 });
return;
}
@@ -249,7 +249,7 @@ export class CommentThreadWidget extends BaseWidget {
protected render(): void {
const headHeight = Math.ceil(this.zoneWidget.editor.getOption(monaco.editor.EditorOption.lineHeight) * 1.2);
ReactDOM.render(
-
+
{this.getThreadLabel()}
@@ -258,10 +258,10 @@ export class CommentThreadWidget extends BaseWidget {
@@ -281,11 +281,11 @@ export class CommentThreadWidget extends BaseWidget {
/>)}
, this.zoneWidget.containerNode);
@@ -293,7 +293,7 @@ export class CommentThreadWidget extends BaseWidget {
}
namespace CommentForm {
- export interface Props {
+ export interface Props {
menus: MenuModelRegistry,
commentThread: CommentThread;
commands: CommandRegistry;
@@ -382,29 +382,29 @@ export class CommentForm extend
const hasExistingComments = commentThread.comments && commentThread.comments.length > 0;
return
;
@@ -412,7 +412,7 @@ export class CommentForm extend
}
namespace ReviewComment {
- export interface Props {
+ export interface Props {
menus: MenuModelRegistry,
comment: Comment;
commentThread: CommentThread;
@@ -458,13 +458,13 @@ export class ReviewComment
const { hover } = this.state;
contextKeyService.comment.set(comment.contextValue);
return
+ tabIndex={-1}
+ aria-label={`${comment.userName}, ${comment.body.value}`}
+ ref={this.detectHover}
+ onMouseEnter={this.showHover}
+ onMouseLeave={this.hideHover}>
-

+
@@ -478,20 +478,20 @@ export class ReviewComment
+ isVisible={comment.mode === undefined || comment.mode === CommentMode.Preview} />
+ menus={menus}
+ comment={comment}
+ commentThread={commentThread}
+ commentForm={commentForm}
+ commands={commands} />
;
}
}
namespace CommentBody {
- export interface Props {
+ export interface Props {
value: string
isVisible: boolean
}
@@ -512,7 +512,7 @@ export class CommentBody extends React.Component {
}
namespace CommentEditContainer {
- export interface Props {
+ export interface Props {
contextKeyService: CommentsContextKeyService
menus: MenuModelRegistry,
comment: Comment;
@@ -553,22 +553,22 @@ export class CommentEditContainer extends React.Component
{menus.getMenu(COMMENT_CONTEXT).children.map((node, index) => {
- const onClick = () => {
- commands.executeCommand(node.id, {
- thread: commentThread,
- commentUniqueId: comment.uniqueIdInThread,
- text: this.inputRef.current ? this.inputRef.current.value : ''
- });
- };
- return node instanceof ActionMenuNode &&
- ;
- }
+ const onClick = () => {
+ commands.executeCommand(node.id, {
+ thread: commentThread,
+ commentUniqueId: comment.uniqueIdInThread,
+ text: this.inputRef.current ? this.inputRef.current.value : ''
+ });
+ };
+ return node instanceof ActionMenuNode &&
+ ;
+ }
)}
;
@@ -576,7 +576,7 @@ export class CommentEditContainer extends React.Component
{
- commands.executeCommand(node.id, {
- thread: commentThread,
- commentUniqueId
- });
- }} />
+ title={node.label}
+ onClick={() => {
+ commands.executeCommand(node.id, {
+ thread: commentThread,
+ commentUniqueId
+ });
+ }} />
;
}
}
namespace CommentActions {
- export interface Props {
+ export interface Props {
contextKeyService: CommentsContextKeyService;
commands: CommandRegistry;
menu: CompositeMenuNode;
@@ -617,26 +617,26 @@ namespace CommentActions {
export class CommentActions extends React.Component {
render(): React.ReactNode {
- const {contextKeyService, commands, menu, commentThread, getInput, clearInput } = this.props;
+ const { contextKeyService, commands, menu, commentThread, getInput, clearInput } = this.props;
return
{menu.children.map((node, index) => node instanceof ActionMenuNode &&
{
- commands.executeCommand(node.id, {
- thread: commentThread,
- text: getInput()
- });
- clearInput();
- }}
- contextKeyService={contextKeyService}
+ commands={commands}
+ node={node}
+ onClick={() => {
+ commands.executeCommand(node.id, {
+ thread: commentThread,
+ text: getInput()
+ });
+ clearInput();
+ }}
+ contextKeyService={contextKeyService}
/>)}
;
}
}
namespace CommentAction {
- export interface Props {
+ export interface Props {
contextKeyService: CommentsContextKeyService;
commands: CommandRegistry;
node: ActionMenuNode;
@@ -655,7 +655,7 @@ export class CommentAction extends React.Component {
if (!isEnabled) {
classNames.push(DISABLED_CLASS);
}
- return {
onClick();
}
}}>{node.label}
- ;
+ ;
}
}