-
Notifications
You must be signed in to change notification settings - Fork 24
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
Properties panel design finishing #105
Changes from 1 commit
01c67aa
821ba2f
3cce3a8
f64a597
4bbb7f7
17b3ce4
4ee6350
a8fb522
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ import { | |
useLayoutState | ||
} from '../hooks'; | ||
|
||
import { GroupArrowIcon } from './icons'; | ||
import { ArrowIcon } from './icons'; | ||
|
||
/** | ||
* @param {import('../PropertiesPanel').GroupDefinition} props | ||
|
@@ -62,7 +62,8 @@ export default function Group(props) { | |
return <div class="bio-properties-panel-group" data-group-id={ 'group-' + id }> | ||
<div class={ classnames( | ||
'bio-properties-panel-group-header', | ||
edited ? '' : 'empty' | ||
edited ? '' : 'empty', | ||
open? 'open' : '' | ||
) } onClick={ toggleOpen }> | ||
<div title={ getTitleAttribute(label, edited) } class="bio-properties-panel-group-header-title"> | ||
{ label } | ||
|
@@ -71,8 +72,11 @@ export default function Group(props) { | |
{ | ||
edited && <DataMarker /> | ||
} | ||
<button class="bio-properties-panel-group-header-button"> | ||
<GroupArrowIcon class={ open ? 'bio-properties-panel-arrow-down' : 'bio-properties-panel-arrow-right' } /> | ||
<button | ||
title="Toggle section" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did we agree to call this section instead of group? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure whether we ever actively agree on a specific term here, but "section" is part of our technical writing guide. "Group" seems to be something we came up technically. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍🏻 |
||
class="bio-properties-panel-group-header-button bio-properties-panel-arrow" | ||
> | ||
<ArrowIcon class={ open ? 'bio-properties-panel-arrow-down' : 'bio-properties-panel-arrow-right' } /> | ||
</button> | ||
</div> | ||
</div> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,8 @@ import { | |
import ListItem from './ListItem'; | ||
|
||
import { | ||
CreateIcon, | ||
GroupArrowIcon | ||
ArrowIcon, | ||
CreateIcon | ||
} from './icons'; | ||
|
||
const noop = () => {}; | ||
|
@@ -148,7 +148,10 @@ export default function ListGroup(props) { | |
AddContainer | ||
? ( | ||
<AddContainer> | ||
<button class="bio-properties-panel-group-header-button bio-properties-panel-add-entry"> | ||
<button | ||
title="Create new list item" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This title is very generic. Are we okay with that or should we make this configurable (e.g. Create new input)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's part of our design prototype, so it might be ok to keep it generic. We can update it afterward if we see a need though. /cc @andreasgeier There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍🏻 |
||
class="bio-properties-panel-group-header-button bio-properties-panel-add-entry" | ||
> | ||
<CreateIcon /> | ||
</button> | ||
</AddContainer> | ||
|
@@ -167,8 +170,11 @@ export default function ListGroup(props) { | |
{ | ||
hasItems | ||
? ( | ||
<button class="bio-properties-panel-group-header-button"> | ||
<GroupArrowIcon class={ open ? 'bio-properties-panel-arrow-down' : 'bio-properties-panel-arrow-right' } /> | ||
<button | ||
title="Toggle section" | ||
class="bio-properties-panel-group-header-button bio-properties-panel-arrow" | ||
> | ||
<ArrowIcon class={ open ? 'bio-properties-panel-arrow-down' : 'bio-properties-panel-arrow-right' } /> | ||
</button> | ||
) | ||
: null | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
export { default as ArrowIcon } from './Arrow.svg'; | ||
export { default as CreateIcon } from './Create.svg'; | ||
export { default as ListArrowIcon } from './ListArrow.svg'; | ||
export { default as ListDeleteIcon } from './ListDelete.svg'; | ||
export { default as GroupArrowIcon } from './GroupArrow.svg'; | ||
export { default as DeleteIcon } from './Delete.svg'; |
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.
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.
So that it doesn't look like similar to optional chaining.