Skip to content

Commit

Permalink
build(deps-dev): bump @StackExchange/stacks from 2.2.0 to 2.3.0 (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
dancormier authored Mar 21, 2024
1 parent 40da848 commit 9d5d0e5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@playwright/test": "^1.41.2",
"@stackoverflow/commitlint-config": "^1.0.0",
"@stackoverflow/prettier-config": "^1.0.0",
"@stackoverflow/stacks": "^2.2.0",
"@stackoverflow/stacks": "^2.3.0",
"@stackoverflow/tsconfig": "^1.0.0",
"@types/jest": "^29.5.12",
"@typescript-eslint/eslint-plugin": "^7.0.2",
Expand Down
8 changes: 4 additions & 4 deletions src/stacks-editor/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,13 +351,13 @@ export class StacksEditor implements View {
const container = document.createElement("div");
container.className = "flex--item d-flex ai-center ml24 fc-medium";

container.innerHTML = escapeHTML`<div class="s-btn-group s-btn-group--radio fw-nowrap myn2">
container.innerHTML = escapeHTML`<div class="s-btn-group s-editor-btn-group fw-nowrap myn2">
<input type="radio" name="mode-toggle-${this.internalId}"
id="mode-toggle-rich-${this.internalId}"
class="s-btn--radio js-editor-toggle-btn"
data-mode="${EditorType.RichText}"
${richCheckedProp} />
<label class="s-btn s-btn__muted s-btn__outlined s-editor-btn"
<label class="s-btn s-btn__muted s-btn__icon px6 py2 s-editor-btn"
for="mode-toggle-rich-${this.internalId}"
title="${_t("menubar.mode_toggle_richtext_title")}">
<span class="svg-icon-bg iconRichText"></span>
Expand All @@ -371,7 +371,7 @@ export class StacksEditor implements View {
data-mode="${EditorType.Commonmark}"
data-preview="false"
${markCheckedProp} />
<label class="s-btn s-btn__muted s-btn__outlined s-editor-btn"
<label class="s-btn s-btn__muted px6 py2 s-editor-btn"
for="mode-toggle-markdown-${this.internalId}"
title="${_t("menubar.mode_toggle_markdown_title")}">
<span class="svg-icon-bg iconMarkdown"></span>
Expand All @@ -392,7 +392,7 @@ export class StacksEditor implements View {
data-mode="${EditorType.Commonmark}"
data-preview="${previewEnabled.toString()}"
${previewCheckedProp} />
<label class="s-btn s-btn__muted s-btn__outlined s-editor-btn px6"
<label class="s-btn s-btn__muted s-btn__icon px6 py2 s-editor-btn"
for="mode-toggle-preview-${this.internalId}"
title="${_t("menubar.mode_toggle_preview_title")}">
<span class="svg-icon-bg iconMarkdownPreview"></span>
Expand Down
5 changes: 0 additions & 5 deletions src/styles/custom-components.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@
right: var(--su2);
}

.s-btn-group--radio .s-btn.s-editor-btn {
margin: calc(var(--su2) * -1) 0;
padding: var(--su4) var(--su6);
}

.s-editor--dropdown-item {
padding: var(--su4) var(--su12);
}
Expand Down

0 comments on commit 9d5d0e5

Please sign in to comment.