Skip to content

Commit

Permalink
make image visible by forcing light bg
Browse files Browse the repository at this point in the history
  • Loading branch information
e111077 committed Mar 4, 2024
1 parent f3d1f3e commit a74592f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/lit-dev-content/site/css/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ body.light {
--sys-color-on-dark-surface-emphasis: #fff;
--sys-color-dark-surface: #303030;
--sys-color-dark-surface-dim: #222;
--sys-color-light-surface: #f9f9f9;

--playground-code-background: var(--sys-color-surface);
--playground-code-keyword-color: #d92f3f;
Expand Down
4 changes: 4 additions & 0 deletions packages/lit-dev-content/site/css/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ article h4 {
margin-top: 1.3em;
}

article .light-bg {
background-color: var(--sys-color-light-surface);
}

/* ------------------------------------
* Lists
* ------------------------------------ */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ A few implications of this model:
Consider a menu component that includes a set of menu items and exposes `items` and `selectedItem` properties as part of its public API. Its DOM structure might look like this:


![A hierarchy of DOM nodes representing a menu. The top node, my-menu, has a ShadowRoot, which contains three my-item elements.](/images/docs/composition/composition-menu-component.png)
![A hierarchy of DOM nodes representing a menu. The top node, my-menu, has a ShadowRoot, which contains three my-item elements.](/images/docs/composition/composition-menu-component.png){.light-bg}

When the user selects an item, the `my-menu` element should update its `selectedItem` property. It should also fire an event to notify any owning component that the selection has changed. The complete sequence would be something like this:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ A few implications of this model:
Consider a menu component that includes a set of menu items and exposes `items` and `selectedItem` properties as part of its public API. Its DOM structure might look like this:


![A hierarchy of DOM nodes representing a menu. The top node, my-menu, has a ShadowRoot, which contains three my-item elements.](/images/docs/composition/composition-menu-component.png)
![A hierarchy of DOM nodes representing a menu. The top node, my-menu, has a ShadowRoot, which contains three my-item elements.](/images/docs/composition/composition-menu-component.png){.light-bg}

When the user selects an item, the `my-menu` element should update its `selectedItem` property. It should also fire an event to notify any owning component that the selection has changed. The complete sequence would be something like this:

Expand Down

0 comments on commit a74592f

Please sign in to comment.