Skip to content

Commit 0914adc

Browse files
committed
fix: done except icons
1 parent 9bfd022 commit 0914adc

File tree

5 files changed

+507
-358
lines changed

5 files changed

+507
-358
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,77 @@
11
/** Jake, I removed your notes I promise I read them. - Morgan **/
22

3-
:host {
4-
background-color: green;
3+
ol,
4+
ul {
5+
list-style: none;
6+
7+
margin: 10px;
8+
9+
padding: 10px;
10+
11+
display: flex;
12+
13+
flex-direction: row;
14+
15+
flex-wrap: wrap;
16+
17+
gap: 10px;
18+
}
19+
20+
li {
21+
list-style: none;
22+
display: flex;
23+
flex-direction: row;
24+
align-items: center;
25+
position: relative;
26+
padding: 10px;
27+
28+
margin: 10px;
29+
}
30+
31+
/**
32+
* Using width,height,background,transform for breadcrumb separator because
33+
* content: "/"; was getting read by screen readers.
34+
*/
35+
li:not(:first-of-type)::before {
36+
content: '';
37+
display: flex;
38+
margin-right: 10px;
39+
height: 1em;
40+
width: 1px;
41+
background: currentColor;
42+
transform: rotate(23deg);
43+
}
44+
45+
a {
46+
text-decoration: none;
47+
display: inline-flex;
48+
align-items: center;
49+
50+
padding:10px;
51+
margin:10px;
52+
53+
54+
&:hover {
55+
text-decoration: underline;
56+
}
57+
&:focus,
58+
&:focus-visible {
59+
outline: solid 3px blue;
60+
border-radius: var(--border-radius-button-default);
61+
outline-offset: var(--spacing-px);
62+
63+
@screen lg {
64+
outline: solid 3px blue;
65+
}
66+
}
67+
}
68+
69+
.separator {
70+
margin-left: 10px;
571
}
672

7-
span {
8-
color: red;
73+
.previous-link {
74+
display: flex;
75+
flex-direction: row;
76+
align-items: center;
977
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
/** Jake, I removed your notes I promise I read them. - Morgan **/
2+
3+
ol,
4+
ul {
5+
list-style: none;
6+
7+
margin: 10px;
8+
9+
padding: 10px;
10+
11+
display: flex;
12+
13+
flex-direction: row;
14+
15+
flex-wrap: wrap;
16+
17+
gap: 10px;
18+
}
19+
20+
li {
21+
list-style: none;
22+
display: flex;
23+
flex-direction: row;
24+
align-items: center;
25+
position: relative;
26+
padding: 10px;
27+
28+
margin: 10px;
29+
}
30+
31+
/**
32+
* Using width,height,background,transform for breadcrumb separator because
33+
* content: "/"; was getting read by screen readers.
34+
*/
35+
li:not(:first-of-type)::before {
36+
content: '';
37+
display: flex;
38+
margin-right: 10px;
39+
height: 1em;
40+
width: 1px;
41+
background: currentColor;
42+
transform: rotate(23deg);
43+
}
44+
45+
a {
46+
text-decoration: none;
47+
display: inline-flex;
48+
align-items: center;
49+
50+
padding:10px;
51+
margin:10px;
52+
53+
54+
&:hover {
55+
text-decoration: underline;
56+
}
57+
&:focus,
58+
&:focus-visible {
59+
outline: solid 3px blue;
60+
border-radius: var(--border-radius-button-default);
61+
outline-offset: var(--spacing-px);
62+
63+
@screen lg {
64+
outline: solid 3px blue;
65+
}
66+
}
67+
}
68+
69+
.separator {
70+
margin-left: 10px;
71+
}
72+
73+
.previous-link {
74+
display: flex;
75+
flex-direction: row;
76+
align-items: center;
77+
}

packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { html, TemplateResult, CSSResultGroup, css } from 'lit';
22
import { customElement } from 'lit/decorators.js';
3-
3+
import { AdoptedStyleSheets } from '@phase2/outline-adopted-stylesheets-controller';
44
// Our base component, which all others extend.
55
import { OutlineElement, SlotsController } from '@phase2/outline-core';
66
import componentStyles from './outline-core-breadcrumb.css.lit';
7+
import globalStyles from './outline-core-breadcrumb.lightdom.css.lit';
78
import { ResizeController } from './resize-controller';
89

910
/** The element name, reused throughout the codebase */
@@ -31,6 +32,13 @@ const componentName = 'outline-core-breadcrumb';
3132
@customElement(componentName)
3233
export class OutlineCoreBreadcrumb extends OutlineElement {
3334
static styles: CSSResultGroup = [componentStyles, componentStyles, css``];
35+
AdoptedStyleSheets: AdoptedStyleSheets;
36+
37+
connectedCallback() {
38+
super.connectedCallback();
39+
this.AdoptedStyleSheets = new AdoptedStyleSheets(globalStyles);
40+
this.addController(this.AdoptedStyleSheets);
41+
}
3442

3543
slots = new SlotsController(this);
3644
resizeController = new ResizeController(this, {

0 commit comments

Comments
 (0)