Skip to content

Commit

Permalink
changed className so there is no spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
nickamantia committed Oct 24, 2024
1 parent 70085cc commit 926f7e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
8 changes: 4 additions & 4 deletions playbook/app/pb_kits/playbook/pb_dropdown/_dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

@import "./scss_partials/dropdown_animation";

.pb_dropdown {
[class*="pb_dropdown"] {
.dropdown_wrapper {
[class*="dropdown_trigger_wrapper"] {
@include pb_body;
Expand Down Expand Up @@ -131,7 +131,7 @@
}
}

&.separators_hidden {
&[class*="separators_hidden"] {
.dropdown_wrapper {
.pb_dropdown_container {

Expand All @@ -142,7 +142,7 @@
}
}

&.subtle {
&[class*="subtle"] {
.dropdown_wrapper {
.pb_dropdown_container {

Expand Down Expand Up @@ -178,7 +178,7 @@
}
}

&.separators_hidden {
&[class*="separators_hidden"] {
.dropdown_wrapper {
.pb_dropdown_container {
[class*="pb_dropdown_option"]:first-child {
Expand Down
4 changes: 1 addition & 3 deletions playbook/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@ const Dropdown = forwardRef((props: DropdownProps, ref: any) => {
const htmlProps = buildHtmlProps(htmlOptions);
const separatorsClass = separators ? '' : 'separators_hidden'
const classes = classnames(
buildCss("pb_dropdown"),
buildCss("pb_dropdown", variant, separatorsClass),
globalProps(props),
variant,
separatorsClass,
className
);

Expand Down
4 changes: 2 additions & 2 deletions playbook/app/pb_kits/playbook/pb_dropdown/dropdown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def data
end

def classname
generate_classname("pb_dropdown", variant, separators_class, separator: " ")
generate_classname("pb_dropdown", variant, separators_class)
end

private
Expand All @@ -38,7 +38,7 @@ def input_default_value
end

def separators_class
separators ? "" : "separators_hidden"
separators ? nil : "separators_hidden"
end

def options_with_blank
Expand Down

0 comments on commit 926f7e1

Please sign in to comment.