-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into cell-placeholder
- Loading branch information
Showing
15 changed files
with
302 additions
and
64 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
angular-workspace/projects/ni/nimble-angular/CHANGELOG.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,51 @@ | ||
{ | ||
"name": "@ni/nimble-components", | ||
"entries": [ | ||
{ | ||
"date": "Thu, 21 Mar 2024 00:31:13 GMT", | ||
"version": "22.1.1", | ||
"tag": "@ni/nimble-components_v22.1.1", | ||
"comments": { | ||
"none": [ | ||
{ | ||
"author": "[email protected]", | ||
"package": "@ni/nimble-components", | ||
"commit": "755823b11215aa2a2c48f296546d0cb8acf6f64c", | ||
"comment": "Small change to design token naming scheme" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Wed, 20 Mar 2024 16:45:59 GMT", | ||
"version": "22.1.1", | ||
"tag": "@ni/nimble-components_v22.1.1", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"author": "[email protected]", | ||
"package": "@ni/nimble-components", | ||
"commit": "83f7fd9e601eed789e8f6eb61a9d4a87a1d1835b", | ||
"comment": "Remove ListOptionOwner from Combobox to address issue found in Angular" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Wed, 20 Mar 2024 15:46:00 GMT", | ||
"version": "22.1.0", | ||
"tag": "@ni/nimble-components_v22.1.0", | ||
"comments": { | ||
"none": [ | ||
{ | ||
"author": "[email protected]", | ||
"package": "@ni/nimble-components", | ||
"commit": "517e9450043eb0a3797ff278985cc702c4ad0fab", | ||
"comment": "Create anchor patterns story" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Mon, 18 Mar 2024 18:10:43 GMT", | ||
"version": "22.1.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
packages/nimble-components/src/patterns/anchor/tests/anchor-patterns.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { Controls, Canvas, Meta, Title } from '@storybook/blocks'; | ||
import * as anchorPatternStories from './anchor-patterns.stories'; | ||
|
||
<Meta of={anchorPatternStories} /> | ||
<Title of={anchorPatternStories} /> | ||
|
||
Anchor components in nimble should behave like native anchors in a number of different ways that are difficult to unit test in an automated manner. | ||
Therefore, this story contains a native anchor element along with all of the nimble components that are anchors or contain anchors. | ||
The following behaviors should be true of the nimble components: | ||
|
||
Mouse interactions: | ||
|
||
- Dragging the nimble component should behave like the native anchor | ||
- Known behavior exceptions: | ||
- Chromium - The drag preview contains the href only, not the label of the anchor. See [chromium issue 329489154](https://issues.chromium.org/issues/329489154). | ||
- Firefox - The drag preview does not contain the label, and in most cases, is blank. See [mozilla bug 1589364](https://bugzilla.mozilla.org/show_bug.cgi?id=1589364). | ||
- Safari - The drag preview contains the href only, not the label of the anchor. | ||
- CTRL + CLICK opens in a new tab (⌘ + CLICK on macOS) | ||
- Right clicking should open the link menu | ||
- Hovering over the component should show the URL preview at the bottom of the browser window | ||
- Copying the link through the right-click link menu should result in the expected string to be copied to the clipboard | ||
- The hover state of the component and mouse pointer should match the area of the component that navigates when clicked (i.e. clicking the white space around the control should not navigate) | ||
|
||
Keyboard interactions: | ||
|
||
- Focusing via tab should show the URL preview at the bottom of the browser window | ||
- Known behavior exceptions: | ||
- Firefox on macOS - Links are not focusable via tab by default. [See this stackoverflow page for how to allow tab focus of links](https://stackoverflow.com/questions/11704828/how-to-allow-keyboard-focus-of-links-in-firefox). | ||
- Safari - Focusing via tab does not show the URL preview at the bottom of the browser, which matches the behavior of native anchors. | ||
- Pressing ENTER when focused should activate the link | ||
- Pressing the MENU KEY on the keyboard while the link is focused should open the same link menu as a right click | ||
|
||
Interactions specific to anchors visualized as text: | ||
|
||
- Selecting the link through click and drag and then copying it should result in the expected string being copied to the clipboard | ||
|
||
<Canvas of={anchorPatternStories.anchorPatterns} /> | ||
<Controls of={anchorPatternStories.anchorPatterns} /> |
Oops, something went wrong.