-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Select component #154
Select component #154
Conversation
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.
scss/form/inputs.scss
Outdated
background: white; | ||
border: none; | ||
outline: none; | ||
@include border-style(#000000, #ffffff); |
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.
please use color variables 🙏
- #000, black ->
$base-color
- #fff, white ->
$background-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.
Okay 😄 I will fix it later 🙇
@trezy I restored the branch. Sorry. 🙇♂️ |
Sorry for the late comment. 😢 I reexamined the styles with reference to your implementation. 🔧 I don't need to provide a dark theme for input elements. 🙇 .nes-select {
@mixin border-style($border, $outline) {
color: $border;
box-shadow: 0 4px, 0 -4px, 4px 0, -4px 0;
> select {
outline-color: $outline;
}
&::after {
color: $background-color;
background-color: $border;
}
}
position: relative;
display: inline-block;
max-width: 100%;
margin: 4px;
@include border-style($base-color, map-get($default-colors, "hover"));
&.is-success {
@include border-style(map-get($success-colors, "normal"), map-get($success-colors, "hover"));
}
&.is-warning {
@include border-style(map-get($warning-colors, "normal"), map-get($warning-colors, "hover"));
}
&.is-error {
@include border-style(map-get($error-colors, "normal"), map-get($error-colors, "hover"));
}
> select {
width: 100%;
padding: 0.5rem 3.2rem 0.5rem 1rem;
cursor: $cursor-click-url, pointer;
border: none;
-webkit-appearance: none;
appearance: none;
}
&::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 2.5rem;
line-height: 2.5rem;
color: $background-color;
text-align: center;
pointer-events: none;
content: ">";
transform: rotateZ(90deg);
}
} <div class="nes-select">
<select>
<option>Hello</option>
<option>World</option>
</select>
</div>
<div class="nes-select is-success">
<select>
<option>Hello</option>
<option>World</option>
</select>
</div>
<div class="nes-select is-warning">
<select>
<option>Hello</option>
<option>World</option>
</select>
</div>
<div class="nes-select is-error">
<select>
<option>Hello</option>
<option>World</option>
</select>
</div> |
That's pretty dope! 😎 I have a problem. I don't have the |
umm…… 🤔 NES.css/scss/base/variables.scss Lines 11 to 39 in 0e66d0b
References to the develop branch may be old 🙈 |
This PR was addressed by #217. |
i really have no idea what i am to do plz help me
…On Sat, Dec 22, 2018 at 9:37 PM ダーシノ ***@***.***> wrote:
This PR was addressed by #217
<#217>.
Sorry 🙇
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#154 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ArgS1ksZOsGQcSMMwoqqJI1BopUgP1Bpks5u7vpfgaJpZM4ZKlw0>
.
|
I added a select component.
I had to remove the
border-style
mixin from theinput
scope ininput.scss
so I can use it.This solves the issue #152 .