-
Notifications
You must be signed in to change notification settings - Fork 1
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
Added borderless attr for power select #479
Conversation
@@ -1,5 +1,5 @@ | |||
<div | |||
class="upf-power-select fx-1 fx-col" | |||
class="upf-power-select fx-1 fx-col {{if @borderless 'borderless'}}" |
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.
class="upf-power-select fx-1 fx-col {{if @borderless 'borderless'}}" | |
class="upf-power-select fx-1 fx-col {{if @borderless 'upf-power-select--borderless'}}" |
To better respect the BEM, maybe more upf-power-select--borderless
app/styles/power-select.less
Outdated
@@ -16,6 +16,12 @@ | |||
} | |||
} | |||
|
|||
&.borderless { |
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.
&.borderless { | |
&--borderless { |
</OSS::PowerSelect> | ||
`); | ||
|
||
assert.dom('.upf-power-select').hasClass('borderless'); |
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.
assert.dom('.upf-power-select').hasClass('borderless'); | |
assert.dom('.upf-power-select').hasClass('upf-power-select--borderless'); |
@@ -40,6 +40,16 @@ export default { | |||
}, | |||
control: { type: 'boolean' } | |||
}, | |||
borderless: { | |||
description: 'Display border of the component', |
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.
"Hide the border around the dropdown component"
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.
LGTM
What does this PR do?
Related to: #
What are the observable changes?
Good PR checklist