Skip to content

Commit

Permalink
2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
adanski committed Jan 11, 2023
1 parent 9746f3a commit f2ffd39
Show file tree
Hide file tree
Showing 5 changed files with 155 additions and 155 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
types: [completed]

jobs:
on-success:
test:
runs-on: windows-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
strategy:
Expand All @@ -23,7 +23,7 @@ jobs:
- run: npm install
- run: npm test

on-failure:
fail:
runs-on: windows-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ax-comments",
"title": "ax-comments",
"version": "2.0.0",
"version": "2.0.1",
"author": {
"name": "Adrian Z."
},
Expand Down
2 changes: 1 addition & 1 deletion src/comments-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class CommentsElement extends HTMLElement implements WebComponent {
*/
#initShadowDom(shadowRoot: ShadowRoot): void {
shadowRoot.innerHTML = `
<section id="comments-container" class="jquery-comments">
<section id="comments-container">
</section>
`;
shadowRoot.adoptedStyleSheets = [STYLE_SHEET];
Expand Down
10 changes: 5 additions & 5 deletions src/css/dynamic-stylesheet-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ export function createDynamicStylesheet(options: CommentsOptions): CSSStyleSheet
let css: string = '';

// Navigation underline
css += `.jquery-comments ul.navigation li.active:after {background: ${options.highlightColor} !important;}`;
css += `#comments-container ul.navigation li.active:after {background: ${options.highlightColor} !important;}`;

// Dropdown active element
css += `.jquery-comments ul.navigation ul.dropdown li.active {background: ${options.highlightColor} !important;}`;
css += `#comments-container ul.navigation ul.dropdown li.active {background: ${options.highlightColor} !important;}`;

// Background highlight
css += `.jquery-comments .highlight-background {background: ${options.highlightColor} !important;}`;
css += `#comments-container .highlight-background {background: ${options.highlightColor} !important;}`;

// Font highlight
css += `.jquery-comments .highlight-font {color: ${options.highlightColor} !important;}`;
css += `.jquery-comments .highlight-font-bold {color: ${options.highlightColor} !important;font-weight: bold;}`;
css += `#comments-container .highlight-font {color: ${options.highlightColor} !important;}`;
css += `#comments-container .highlight-font-bold {color: ${options.highlightColor} !important;font-weight: bold;}`;

return createStyle(css);
}
Expand Down
Loading

0 comments on commit f2ffd39

Please sign in to comment.