Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .iui-field base class for inputs #1919

Merged
merged 100 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
4035d91
Start work on `.iui-field`.
FlyersPh9 Mar 13, 2024
fe3c15b
continuing iui-field
FlyersPh9 Mar 19, 2024
edb77ad
Random fixes for test images.
FlyersPh9 Mar 19, 2024
38db335
Remove hover media query.
FlyersPh9 Mar 21, 2024
469fb19
Fix tile button bugs.
FlyersPh9 Mar 21, 2024
d478a47
CSS test images.
FlyersPh9 Mar 21, 2024
2e670d9
Changeset.
FlyersPh9 Mar 21, 2024
8e5532c
`data-iui-type="feedback"`
FlyersPh9 Mar 21, 2024
e38c27f
`data-iui-type="dropdown"`
FlyersPh9 Mar 21, 2024
0d35a5d
Merge remote-tracking branch 'origin/main' into jon/field-class
FlyersPh9 Mar 25, 2024
a20d074
Remove accent, orange, red button options.
FlyersPh9 Mar 25, 2024
5958f8f
Reverting variant names back to high-visibility and cta
FlyersPh9 Mar 25, 2024
b40c496
CSS test images.
FlyersPh9 Mar 25, 2024
c99a0c6
Remove old test file.
FlyersPh9 Mar 25, 2024
9d7cc78
Cleanup.
FlyersPh9 Mar 25, 2024
9ab9e8f
Cleanup.
FlyersPh9 Mar 26, 2024
7326e87
Change to major version bump.
FlyersPh9 Mar 28, 2024
8ea0caf
Mention data-iui-type in changeset.
FlyersPh9 Mar 28, 2024
52fc1e9
Cover active state in button icon.
FlyersPh9 Mar 28, 2024
c01d65a
Add missing &.
FlyersPh9 Mar 28, 2024
ef5af1e
Set icon fill variable instead of fill property directly.
FlyersPh9 Mar 28, 2024
53f71e7
Remove border-color transition from .
FlyersPh9 Mar 28, 2024
4b91614
Reverting disabled fill variable change.
FlyersPh9 Mar 28, 2024
1d0a9f5
Fix typo
FlyersPh9 Mar 28, 2024
a1d875d
Add diff to changeset
FlyersPh9 Mar 28, 2024
ed91ece
Remove uneeccessary
FlyersPh9 Mar 28, 2024
ed9b2f1
Remove extra spaces in changeset.
FlyersPh9 Apr 2, 2024
fa660aa
Use sass variable for consistent disabled selectors.
FlyersPh9 Apr 2, 2024
b3594f8
Remove .
FlyersPh9 Apr 2, 2024
dd3e0ee
Update packages/itwinui-css/src/button/base.scss
FlyersPh9 Apr 8, 2024
51ec700
Update packages/itwinui-css/src/table/paginator.scss
FlyersPh9 Apr 8, 2024
2c81079
Use .iui-field on .iui-input-flex-container
FlyersPh9 Apr 8, 2024
72fa511
Remove unused data-iui-variant from button icons with notification ma…
FlyersPh9 Apr 8, 2024
e3cfe6b
Update packages/itwinui-css/src/button/base.scss
FlyersPh9 Apr 11, 2024
514f72e
Move `.iui-field` to `/utils/field.scss`
FlyersPh9 Apr 11, 2024
0735ae3
Update changeset.
FlyersPh9 Apr 11, 2024
1d0709b
Update changeset.
FlyersPh9 Apr 11, 2024
dd21c3d
Remove disabled with placeholder styling and demos
FlyersPh9 Apr 11, 2024
ca81f7d
Move `field.scss` out of `utils`.
FlyersPh9 Apr 12, 2024
c07bff0
Better formatting of changeset
FlyersPh9 Apr 12, 2024
f23a98a
Merge remote-tracking branch 'origin/main' into jon/field-class
FlyersPh9 Apr 12, 2024
50556b9
Requires no-verify
FlyersPh9 Apr 12, 2024
44e4706
Start React work.
FlyersPh9 Apr 17, 2024
66e9246
Add missing `data-iui-variant` to paginator
FlyersPh9 Apr 17, 2024
966db12
Remove remaining disabled with placeholder styling.
FlyersPh9 Apr 17, 2024
0ccaa29
React test images.
FlyersPh9 Apr 17, 2024
ebcc074
Additional react test image.
FlyersPh9 Apr 17, 2024
04340eb
Revert `data-iui-type`
FlyersPh9 Apr 17, 2024
7927e4d
Better types; resolves TODO
r100-stack Apr 18, 2024
c07bf55
Merge with main.
FlyersPh9 Apr 18, 2024
f0d7f52
Fix search icon specificity issue.
FlyersPh9 Apr 19, 2024
e7e80e6
Update packages/itwinui-css/src/searchbox/searchbox.scss
FlyersPh9 Apr 19, 2024
6d00d7e
`className` as a list.
FlyersPh9 Apr 19, 2024
d010a9d
Fix IdeasButton unit tests
r100-stack Apr 19, 2024
9ff84e1
Corrected changeset with idea button.
FlyersPh9 Apr 19, 2024
5eca5b7
Fix TablePaginator unit tests
r100-stack Apr 19, 2024
efa1b9b
Merge remote-tracking branch 'origin/jon/field-class' into jon/field-…
r100-stack Apr 19, 2024
2f4db5e
More Breadcrumbs unit tests
r100-stack Apr 19, 2024
d91f5e6
Use Astro Button component in CSS demo pages.
FlyersPh9 Apr 19, 2024
1f2dc84
Update apps/css-workshop/src/pages/table.astro
FlyersPh9 Apr 24, 2024
83a4078
Increase specificity of `.iui-field`, revert moving `utils` within `a…
FlyersPh9 Apr 24, 2024
7078107
Revert search CSS change after `iui-field` specificity change.
FlyersPh9 Apr 24, 2024
54c24a7
Merge `.iui-field`'s hover and active states in CSS.
FlyersPh9 Apr 24, 2024
ef0344a
`className` as a list.
FlyersPh9 Apr 24, 2024
2b92067
Remove `@each` loop from `field.scss`.
FlyersPh9 Apr 24, 2024
b4bef4d
Simplified `.iui-field`'s hover and active states even further.
FlyersPh9 Apr 24, 2024
a8e0b68
Remove abstraction from unit test
r100-stack Apr 24, 2024
be3b0d3
TablePaginator uses `Button` instead of `.iui-button`
r100-stack Apr 24, 2024
2a748ad
Remove `.iui-disabled` from buttons (not split button).
FlyersPh9 Apr 25, 2024
fb546c8
Remove `.iui-disabled` from `.iui-field` and `.iui-select-button` in …
FlyersPh9 Apr 25, 2024
ad7e0ae
Update ideas button className in React.
FlyersPh9 Apr 25, 2024
88233c0
In Select, `.iui-disabled`→`data-iui-disabled`
r100-stack Apr 26, 2024
759bc9a
Better button icon fill CSS.
FlyersPh9 Apr 26, 2024
55a8896
Revert `iui-field` on Input Flex Container
FlyersPh9 Apr 30, 2024
d24a538
Fix IdeasButton unit tests
r100-stack Apr 30, 2024
436c540
Fixed Fieldset unit test
r100-stack Apr 30, 2024
1ddac82
Removed the unnecessary nested spans.
r100-stack Apr 30, 2024
c20caa3
React changeset
r100-stack Apr 30, 2024
06027b0
nit
r100-stack Apr 30, 2024
22824c6
React changeset for TablePaginator small buttons
r100-stack May 1, 2024
3c56408
Breadcrumb anchors use button class and borderless variant, require n…
FlyersPh9 May 1, 2024
d2d6e36
Using `Button` in `BreadcrumbsItem`
r100-stack May 1, 2024
610af90
Merge remote-tracking branch 'origin/main' into jon/field-class
FlyersPh9 May 1, 2024
6162968
Merge remote-tracking branch 'origin/jon/field-class' into jon/field-…
FlyersPh9 May 1, 2024
9713780
You get a changeset, everyone gets a changeset!
FlyersPh9 May 1, 2024
840aa72
Changesets include diffs
FlyersPh9 May 1, 2024
93e16d7
tweak changesets some more
mayank99 May 1, 2024
135f0e7
tweak changesets some more
mayank99 May 1, 2024
7ccb138
Update packages/itwinui-css/src/button/variant.scss
FlyersPh9 May 1, 2024
8860aa2
Update packages/itwinui-css/src/field.scss
FlyersPh9 May 1, 2024
825155d
No field variable for placeholder text color.
FlyersPh9 May 1, 2024
fed13e1
Simplify breadcrumbs CSS.
FlyersPh9 May 1, 2024
84b7e39
Button astro component supports `as`, breadcrumbs anchors use `as='a'`
FlyersPh9 May 1, 2024
f3bc53d
Missing React test images.
FlyersPh9 May 1, 2024
e3cc739
Update .changeset/lazy-seahorses-share.md
mayank99 May 2, 2024
f80f163
Update .changeset/perfect-oranges-invite.md
Ben-Pusey-Bentley May 2, 2024
25b40be
apply changeset suggestions from Rohan's code review
mayank99 May 2, 2024
c8196af
Update apps/css-workshop/src/components/Button.astro
FlyersPh9 May 2, 2024
7c495fb
mention `iui-button-icon` in changeset
mayank99 May 2, 2024
04932c8
Merge branch 'main' into jon/field-class
mayank99 May 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .changeset/beige-stingrays-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
"@itwin/itwinui-css": major
---

`.iui-breadcrumbs-content` now requires `.iui-button .iui-field` and `data-iui-variant="borderless"`.

```diff
<button
- class="iui-breadcrumbs-content"
+ class="iui-button iui-button-base iui-field iui-breadcrumbs-content"
+ data-iui-variant="borderless"
>
```

When used with `<a>`, the same button classes must be used, and the content must be wrapped in a `<span>`. As a result, the anchor's hover state will now be more consistent with the button's hover state.

```diff
<a
- class="iui-anchor iui-breadcrumbs-content"
+ class="iui-anchor iui-button-base iui-button iui-field iui-breadcrumbs-content"
+ data-iui-variant="borderless"
>
+ <span>
+ </span>
</a>
```
20 changes: 20 additions & 0 deletions .changeset/chilled-dolls-promise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
"@itwin/itwinui-css": major
---

`.iui-select-tag-button` now requires `.iui-button .iui-field` and `data-iui-variant="borderless"`.

```diff
<button
- class="iui-select-tag-button"
+ class="iui-button iui-field iui-select-tag-button"
+ data-iui-variant="borderless"
>
```

Similarly, `.iui-select-tag-button-icon` also requires `.iui-button-icon`.

```diff
- <span class="iui-select-tag-button-icon">
+ <span class="iui-select-tag-button-icon iui-button-icon">
```
16 changes: 16 additions & 0 deletions .changeset/cyan-candles-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
"@itwin/itwinui-css": major
---

`.iui-table-paginator-page-button` now requires the same markup as borderless buttons. The `.iui-table-paginator-page-button-small` modifier class has been removed.

```diff
<button
- class="iui-table-paginator-page-button iui-table-paginator-page-button-small"
+ class="iui-table-paginator-page-button iui-button iui-button-base iui-field"
+ data-iui-variant="borderless"
+ data-iui-size="small"
>
```

As a result, the small paginator will now have a smaller width than before.
13 changes: 13 additions & 0 deletions .changeset/lazy-seahorses-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"@itwin/itwinui-css": major
---

`.iui-sidenav-button.iui-expand` now requires `.iui-button .iui-field` and `data-iui-size="small"`.

```diff
<button
- class="iui-button iui-button-base iui-sidenav-button iui-expand"
+ class="iui-button iui-button-base iui-sidenav-button iui-field iui-expand"
+ data-iui-size="small"
>
```
5 changes: 5 additions & 0 deletions .changeset/light-cars-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@itwin/itwinui-react": patch
---

The small sized `TablePaginator`'s buttons are now squares instead of rectangles. This makes it consistent with the shape of the regular sized `TablePaginator` buttons.
7 changes: 7 additions & 0 deletions .changeset/nasty-bananas-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@itwin/itwinui-react": minor
---

Aggregated a subset of CSS styles across some field components: `Button`, `Input`, `Textarea`, and `Select`, in order to reduce the CSS size and improve visual consistency. Some resulting changes:
* `Input`, `Textarea`, and `Select` have a similar hover state as `Button`.
* `Input`, `Textarea`, and `Select` now show their value as greyed out when disabled.
26 changes: 26 additions & 0 deletions .changeset/ninety-numbers-vanish.md
mayank99 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
"@itwin/itwinui-css": major
---

Added `.iui-field` class to be used with `.iui-button`, `.iui-input`, and `.iui-select-button`. These components now have consistent styling for base, hover and disabled states.

```diff
<button
- class="iui-button iui-button-base"
+ class="iui-button iui-button-base iui-field"
>
```

```diff
<input
- class="iui-input"
+ class="iui-input iui-field"
>
```

```diff
<div
- class="iui-select-button"
+ class="iui-select-button iui-field"
>
```
14 changes: 14 additions & 0 deletions .changeset/odd-planes-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@itwin/itwinui-css": major
---

Ideas button now requires `.iui-button-idea` and `data-iui-variant="high-visibility"` instead of `data-iui-variant="idea"`.

```diff
<button
- class="iui-button iui-button-base"
+ class="iui-button iui-button-base iui-field iui-button-idea"
- data-iui-variant="idea"
+ data-iui-variant="high-visibility"
>
```
5 changes: 5 additions & 0 deletions .changeset/perfect-oranges-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@itwin/itwinui-react": patch
---

The hover styling of `Breadcrumbs.Item` has been made more consistent across buttons and anchors.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 23 additions & 6 deletions apps/css-workshop/src/components/Button.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,33 @@ type Props = {
isActive?: boolean;
dropdown?: boolean;
idea?: boolean;
as?: string;
} & astroHTML.JSX.ButtonHTMLAttributes;

const { class: className, variant, size, isActive, dropdown, idea, ...props } = Astro.props;
const {
as: Element = 'button',
class: className,
variant,
size,
isActive,
dropdown,
idea,
...props
} = Astro.props;
---

<button
class:list={['iui-button', 'iui-button-base', { 'iui-button-dropdown': dropdown }, className]}
type='button'
data-iui-variant={idea ? 'idea' : variant}
<Element
class:list={[
'iui-button',
'iui-button-base',
'iui-field',
{ 'iui-button-dropdown': dropdown },
{ 'iui-button-idea': idea },
className,
]}
type={Element === 'button' ? 'button' : undefined}
data-iui-size={size}
data-iui-variant={idea ? 'high-visibility' : variant}
data-iui-active={isActive ? 'true' : undefined}
{...props}
>
Expand All @@ -39,4 +56,4 @@ const { class: className, variant, size, isActive, dropdown, idea, ...props } =
</span>
)
}
</button>
</Element>
2 changes: 1 addition & 1 deletion apps/css-workshop/src/components/IconButton.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { class: className, variant, size, isActive, shift, ...props } = Astro.pro
---

<button
class:list={['iui-button', 'iui-button-base', className]}
class:list={['iui-button', 'iui-button-base', 'iui-field', className]}
type='button'
data-iui-variant={variant}
data-iui-size={size}
Expand Down
4 changes: 2 additions & 2 deletions apps/css-workshop/src/components/selectTag.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class SelectTag extends HTMLElement {
</span>
${
dismissible
? `<button class="iui-select-tag-button" aria-label="Delete ${value} tag" type="button">
<svg-close-small class="iui-select-tag-button-icon" aria-hidden="true"></svg-close-small>
? `<button class="iui-button iui-field iui-select-tag-button" data-iui-variant="borderless" aria-label="Delete ${value} tag" type="button">
<svg-close-small class="iui-button-icon iui-select-tag-button-icon" aria-hidden="true"></svg-close-small>
</button>`
: ''
}
Expand Down
88 changes: 49 additions & 39 deletions apps/css-workshop/src/pages/breadcrumbs.astro
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ import IconButton_ from '../components/IconButton.astro';
</Button_>
<ol class='iui-breadcrumbs-list'>
<li class='iui-breadcrumbs-item'>
<a class='iui-anchor iui-breadcrumbs-content' href='#'> Root</a>
<Button_ as='a' class='iui-anchor iui-breadcrumbs-content' variant='borderless' href='#'>
Root
</Button_>
</li>
<li class='iui-breadcrumbs-separator' aria-hidden='true'>
<svg-chevron-right aria-hidden='true'></svg-chevron-right>
Expand All @@ -50,15 +52,29 @@ import IconButton_ from '../components/IconButton.astro';
<svg-chevron-right aria-hidden='true'></svg-chevron-right>
</li>
<li class='iui-breadcrumbs-item'>
<a class='iui-anchor iui-breadcrumbs-content' href='#' id='test-1'> Nested</a>
<Button_
as='a'
class='iui-anchor iui-breadcrumbs-content'
variant='borderless'
href='#'
id='test-1'
>
Nested
</Button_>
</li>
<li class='iui-breadcrumbs-separator' aria-hidden='true'>
<svg-chevron-right aria-hidden='true'></svg-chevron-right>
</li>
<li class='iui-breadcrumbs-item'>
<a class='iui-anchor iui-breadcrumbs-content' href='#' id='test-2'>
<Button_
as='a'
class='iui-anchor iui-breadcrumbs-content'
variant='borderless'
href='#'
id='test-2'
>
Double nested folder with truncation
</a>
</Button_>
</li>
<li class='iui-breadcrumbs-separator' aria-hidden='true'>
<svg-chevron-right aria-hidden='true'></svg-chevron-right>
Expand All @@ -79,9 +95,7 @@ import IconButton_ from '../components/IconButton.astro';
</Button_>
<ol class='iui-breadcrumbs-list'>
<li class='iui-breadcrumbs-item'>
<button class='iui-breadcrumbs-content'>
<span> Root</span>
</button>
<Button_ class='iui-breadcrumbs-content' variant='borderless'>Root</Button_>
</li>
<li class='iui-breadcrumbs-separator' aria-hidden='true'>
<svg-chevron-right aria-hidden='true'></svg-chevron-right>
Expand All @@ -93,25 +107,23 @@ import IconButton_ from '../components/IconButton.astro';
<svg-chevron-right aria-hidden='true'></svg-chevron-right>
</li>
<li class='iui-breadcrumbs-item'>
<button class='iui-breadcrumbs-content' id='test-3'>
<span> Nested</span>
</button>
<Button_ class='iui-breadcrumbs-content' variant='borderless' id='test-3'>Nested</Button_>
</li>
<li class='iui-breadcrumbs-separator' aria-hidden='true'>
<svg-chevron-right aria-hidden='true'></svg-chevron-right>
</li>
<li class='iui-breadcrumbs-item'>
<button class='iui-breadcrumbs-content' id='test-4'>
<span> Double nested folder with truncation</span>
</button>
<Button_ class='iui-breadcrumbs-content' variant='borderless' id='test-4'>
Double nested folder with truncation
</Button_>
</li>
<li class='iui-breadcrumbs-separator' aria-hidden='true'>
<svg-chevron-right aria-hidden='true'></svg-chevron-right>
</li>
<li class='iui-breadcrumbs-item'>
<button class='iui-breadcrumbs-content' aria-current='page'>
<span> You are here</span>
</button>
<Button_ class='iui-breadcrumbs-content' variant='borderless' aria-current='page'>
You are here
</Button_>
</li>
</ol>
</nav>
Expand All @@ -126,41 +138,37 @@ import IconButton_ from '../components/IconButton.astro';
</Button_>
<ol class='iui-breadcrumbs-list'>
<li class='iui-breadcrumbs-item'>
<button class='iui-breadcrumbs-content'>
<span>Root</span>
</button>
<Button_ class='iui-breadcrumbs-content' variant='borderless'>Root</Button_>
</li>
<li class='iui-breadcrumbs-separator' aria-hidden='true'>
<svg-chevron-right aria-hidden='true'></svg-chevron-right>
</li>
<li class='iui-breadcrumbs-item'>
<button class='iui-breadcrumbs-content' id='overflow-hover'>
<svg-more class='iui-button-icon' aria-hidden='true'></svg-more>
</button>
<IconButton_ class='iui-breadcrumbs-content' variant='borderless' id='overflow-hover'>
<svg-more></svg-more>
</IconButton_>
</li>
<li class='iui-breadcrumbs-separator' aria-hidden='true'>
<svg-chevron-right aria-hidden='true'></svg-chevron-right>
</li>
<li class='iui-breadcrumbs-item'>
<button class='iui-breadcrumbs-content'>
<span> Nested</span>
</button>
<Button_ class='iui-breadcrumbs-content' variant='borderless'>Nested</Button_>
</li>
<li class='iui-breadcrumbs-separator' aria-hidden='true'>
<svg-chevron-right aria-hidden='true'></svg-chevron-right>
</li>
<li class='iui-breadcrumbs-item'>
<button class='iui-breadcrumbs-content' id='overflow-focus'>
<span>Double nested folder with truncation</span>
</button>
<Button_ class='iui-breadcrumbs-content' variant='borderless' id='overflow-focus'>
Double nested folder with truncation
</Button_>
</li>
<li class='iui-breadcrumbs-separator' aria-hidden='true'>
<svg-chevron-right aria-hidden='true'></svg-chevron-right>
</li>
<li class='iui-breadcrumbs-item'>
<button class='iui-breadcrumbs-content' aria-current='page'>
<span>You are here</span>
</button>
<Button_ class='iui-breadcrumbs-content' variant='borderless' aria-current='page'>
You are here
</Button_>
</li>
</ol>
</nav>
Expand All @@ -174,14 +182,16 @@ import IconButton_ from '../components/IconButton.astro';
<svg-caret-down-small aria-hidden='true' slot='endo-icon'></svg-caret-down-small>
</Button_>
<label class='iui-input-grid iui-inline-label iui-inline-icon'>
<input
value='C:/Root/Lorem/Ipsum/Nested/Double nested folder with truncation/You are here/'
class='iui-input'
spellcheck='false'
/>
<IconButton_ variant='borderless' aria-label='Close'>
<svg-close-small></svg-close-small>
</IconButton_>
<div class='iui-input-flex-container'>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this PR, but fixes a broken test.

<input
value='C:/Root/Lorem/Ipsum/Nested/Double nested folder with truncation/You are here/'
class='iui-input iui-field'
spellcheck='false'
/>
<IconButton_ variant='borderless' aria-label='Close'>
<svg-close-small></svg-close-small>
</IconButton_>
</div>
</label>
</nav>
</section>
Expand Down
4 changes: 2 additions & 2 deletions apps/css-workshop/src/pages/button.astro
Original file line number Diff line number Diff line change
Expand Up @@ -762,15 +762,15 @@ import IconButton_ from '../components/IconButton.astro';
<section id='demo-combo-group'>
<div class='iui-button-group'>
<Button_>Button 1</Button_>
<input class='iui-input' />
<input class='iui-input iui-field' />
<Button_>Button 2</Button_>
</div>

<br />

<div class='iui-button-group'>
<Button_>Button 1</Button_>
<input class='iui-input' placeholder='Disabled input' disabled />
<input class='iui-input iui-field' disabled />
<Button_>Button 2</Button_>
</div>

Expand Down
Loading
Loading