Skip to content

Commit

Permalink
Tweak breadcrumb and rich-text viewer link styling
Browse files Browse the repository at this point in the history
  • Loading branch information
m-akinc committed Apr 1, 2024
1 parent fce00df commit 2b49b01
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion packages/nimble-components/src/breadcrumb-item/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const styles = css`
.control:active {
color: var(--ni-private-breadcrumb-link-active-font-color);
text-decoration: underline;
text-decoration: none;
}
[part='start'] {
Expand Down
14 changes: 0 additions & 14 deletions packages/nimble-components/src/rich-text/viewer/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,4 @@ export const styles = css`
li > p:empty {
display: none;
}
${
/**
* When an absolute link is not HTTPS/HTTP, the anchor tag renders without an `href`, appearing as plain text.
* However, the `nimble-anchor` displays differently in color when the `href` attribute is absent.
* To ensure a consistent appearance, the font color is forced to the default link color regardless of the `href`
* attribute's presence.
*
* See models/markdown-parser.ts where link elements are emitted for more info.
*/ ''
}
nimble-anchor::part(control) {
color: ${linkFontColor};
}
`;

0 comments on commit 2b49b01

Please sign in to comment.