-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from prysmex/pv_modal_optional_onclose
Modal fixes, EuiSelectableListItem skeleton
- Loading branch information
Showing
8 changed files
with
85 additions
and
28 deletions.
There are no files selected for viewing
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
24 changes: 24 additions & 0 deletions
24
packages/core/addon/components/eui-selectable-list-item/index.hbs
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,24 @@ | ||
{{!-- TODO: not fully implemented --}} | ||
|
||
<li | ||
role="option" | ||
aria-selected={{and (not @disabled) (eq (type-of @checked) 'string')}} | ||
class={{class-names | ||
componentName='EuiSelectableListItem' | ||
isFocused=@isFocused | ||
}} | ||
aria-disabled={{@disabled}} | ||
...attributes | ||
> | ||
<span class="euiSelectableListItem__content"> | ||
{{!-- {{optionIcon}} --}} | ||
{{!-- {{prependNode}} --}} | ||
<span class="euiSelectableListItem__text"> | ||
{{yield}} | ||
{{!-- {{state}} --}} | ||
{{!-- {{children}} --}} | ||
{{!-- {{instruction}} --}} | ||
</span> | ||
{{!-- {{appendNode}} --}} | ||
</span> | ||
</li> |
14 changes: 14 additions & 0 deletions
14
packages/core/addon/utils/css-mappings/eui-selectable-list-item.ts
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,14 @@ | ||
export const baseClass = 'euiSelectableListItem'; | ||
|
||
export const isFocusedMapping = { | ||
true: `${baseClass}--isFocused` | ||
}; | ||
|
||
const mapping: ComponentMapping = { | ||
base: baseClass, | ||
properties: { | ||
isFocused: isFocusedMapping | ||
} | ||
}; | ||
|
||
export default mapping; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from '@ember-eui/core/components/eui-selectable-list-item'; |