Skip to content

Commit b418fb3

Browse files
authored
Add react icon component (#124)
* Improve icon element DOM tree * Add icon style * Fix styles for slots with icon * Export the icon * Add the react icon component * Allow to register icons using the react component * Fix tests * Fix format * Sanitize icon SVG strings * Update button icon snapshots --------- Co-authored-by: Frédéric Collonval <fcollonval@users.noreply.github.com>
1 parent 1583278 commit b418fb3

File tree

68 files changed

+255
-61
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+255
-61
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ jobs:
4848
yarn-
4949
5050
- name: Install dependencies
51-
run: python -m pip install -U jupyterlab~=4.0
51+
# Use JLab 4.0.x branch because otherwise this will not bring
52+
# the current toolkit version but the core version one.
53+
run: python -m pip install -U jupyterlab~=4.0.0
5254
- name: Build the extension
5355
run: |
5456
set -eux
@@ -94,6 +96,6 @@ jobs:
9496
sudo rm -rf $(which node)
9597
sudo rm -rf $(which node)
9698
pip install myextension.tar.gz
97-
pip install jupyterlab
99+
pip install "jupyterlab~=4.0.0"
98100
jupyter labextension list 2>&1 | grep -ie "jupyter-ui-demo.*enabled"
99101
python -m jupyterlab.browser_check --no-browser-test

binder/environment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ channels:
1212
dependencies:
1313
# runtime dependencies
1414
- python >=3.10,<3.11.0a0
15-
- jupyterlab >=4.0.0,<5
15+
- jupyterlab >=4.0.0,<4.1.0
1616
# labextension build dependencies
17-
- nodejs >=18,<19
17+
- nodejs >=20,<21
1818
- pip
1919
- wheel

packages/components/src/breadcrumb-item/breadcrumb-item.styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ export const breadcrumbItemStyles: FoundationElementTemplate<
119119
display: flex;
120120
}
121121
122-
::slotted(svg) {
122+
::slotted(svg),
123+
::slotted(jp-icon) {
123124
/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
124125
width: 16px;
125126
height: 16px;

0 commit comments

Comments
 (0)