Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -135,17 +135,13 @@ $task-new-dropdown-border-radius: var(--task-new-dropdown-border-radius, calc(va
border-radius: $task-complete-border-radius;
background: $task-complete-bg-color;
padding: $task-complete-padding;

--dot-options-button-background-color: $task-complete-bg-color;
}

&.incomplete {
border: $task-incomplete-border;
border-radius: $task-complete-border-radius;
background: $task-incomplete-bg-color;
padding: $task-incomplete-padding;

--dot-options-button-background-color: $task-incomplete-bg-color;
}

.task-details-container {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ export const strings = {
due: 'Due ',
addTaskDate: 'Add the task date',
assign: 'Assign'
``
};
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $dot-options-translatex: var(--dot-options-translatex, translateX(-50px));
}

.dot-menu {
&.open{
&.open {
.menu {
display: block;
}
Expand All @@ -57,4 +57,10 @@ $dot-options-translatex: var(--dot-options-translatex, translateX(-50px));
}
}
}

fluent-button {
&::part(control) {
background: inherit;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { MgtBaseComponent, customElement } from '@microsoft/mgt-element';
import { html } from 'lit';
import { property } from 'lit/decorators.js';
import { classMap } from 'lit/directives/class-map.js';
import { strings } from './strings';
import { registerFluentComponents } from '../../../utils/FluentComponents';
import { styles } from './mgt-dot-options-css';

Expand All @@ -36,6 +37,18 @@ export class MgtDotOptions extends MgtBaseComponent {
public static get styles() {
return styles;
}

/**
* Strings for localization
*
* @readonly
* @protected
* @memberof MgtDotOptions
*/
protected get strings() {
return strings;
}

/**
* Determines if header menu is rendered or hidden.
*
Expand Down Expand Up @@ -81,6 +94,7 @@ export class MgtDotOptions extends MgtBaseComponent {
return html`
<fluent-button
appearance="stealth"
aria-label=${this.strings.dotOptionsTitle}
@click=${this.onDotClick}
@keydown=${this.onDotKeydown}
class="dot-icon">\uE712</fluent-button>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* -------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
* See License in the project root for license information.
* -------------------------------------------------------------------------------------------
*/
export const strings = {
dotOptionsTitle: 'More options'
};