-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: Create tree component #999
base: main
Are you sure you want to change the base?
feat: Create tree component #999
Conversation
ab1a56b
to
8ff4407
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #999 +/- ##
==========================================
- Coverage 92.08% 84.74% -7.34%
==========================================
Files 94 49 -45
Lines 2528 2013 -515
Branches 420 369 -51
==========================================
- Hits 2328 1706 -622
- Misses 130 221 +91
- Partials 70 86 +16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
451b793
to
a1dda6b
Compare
a1dda6b
to
0fa9f4e
Compare
Hi the screenreader is not fully working when expanding / collapsing the node. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the keyboard navigation with screenreader
0fa9f4e
to
71add32
Compare
208c027
to
16b8cac
Compare
); | ||
} | ||
/** | ||
* Optional accessiblity label for the tree if there is no explicit label |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accessibility
core/src/components/tree/tree.ts
Outdated
*/ | ||
export interface TreeItem { | ||
/** | ||
* Accessiblity label for the node |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accessibility
core/src/components/tree/tree.ts
Outdated
|
||
interface TreeCommonPropsAndState extends WidgetsCommonPropsAndState { | ||
/** | ||
* Optional accessiblity label for the tree if there is no explicit label |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accessibility
*/ | ||
@Input('auClassName') className: string | undefined; | ||
/** | ||
* Retrieves expand items of the TreeItem |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
false comment ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how querySelectorAll button could return Span or Input ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgot to change to the HTMLButton :)
$au-tree-expand-button-border-radius: 0.375rem !default; | ||
$au-tree-expand-button-background-color: transparent !default; | ||
$au-tree-expand-button-background-color-hover: #c5d5f9 !default; | ||
$au-tree-expand-icon-color-default: blue !default; // TODO change to a proper color |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use proper css var of BS with default value like for the slider
core-bootstrap/src/scss/tree.scss
Outdated
|
||
.au-tree-expand-button-placeholder { | ||
display: flex; | ||
width: 2.75rem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no css var ?
core-bootstrap/src/scss/tree.scss
Outdated
|
||
.au-tree-expand-button { | ||
position: relative; | ||
width: 2.25rem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idem
core/src/components/tree/tree.ts
Outdated
attributes: { | ||
'aria-label': computed(() => { | ||
const {item} = treeItemContext$(); | ||
return `Toggle ${item.label}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we customize this ?
}; | ||
|
||
/** | ||
* A functional component that renders a tree item elemen. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
element
const widget = callWidgetFactory({ | ||
factory: createTree, | ||
widgetName: 'tree', | ||
props: {...props}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't you need a getter here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, the new update
16b8cac
to
c890575
Compare
Before submitting the PR, please make sure you do the following:
Tests and linting
npm run test
npm run lint
npm run e2e
Thank you for contributing to AgnosUI!