Skip to content

feat(unity-react-core): card Carousel active bullet indicator invisib… - #1766

Open
spaceperson wants to merge 2 commits into
devfrom
uds03-2144
Open

feat(unity-react-core): card Carousel active bullet indicator invisib…#1766
spaceperson wants to merge 2 commits into
devfrom
uds03-2144

Conversation

@spaceperson

Copy link
Copy Markdown
Contributor

…le on dark gray background

Description

Checklist

  • Tests pass for relevant code changes

Important Reminders

Links

@spaceperson
spaceperson requested a review from a team as a code owner August 3, 2026 22:26
@asu-jenkins-devops

Copy link
Copy Markdown
Collaborator


&:focus {
outline: none;
&.glide__dark {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My opinion style: components should style themselves based on inheritance. (future proof) if a component has a dark class on its root, or if it inherits it from a parent,

<CardWrapper className="gray-dark-bg">
<CardWrapper className="">

or

<CardWrapper className="gray-dark-bg">

The child components should automatically set the correct colors

.gray-dark-bg {
  --bullet-border-color: $uds-color-brand-gold;
  --bullet-background-color: #333;
}

&:hover {
  border: 1px solid var( --bullet-border-color ,#d0d0d0);
  background-color: var( --bullet-background-color ,#191919); 
}

<button
type="button"
className="glide__bullet"
className={`glide__bullet ${buttonTheme}`}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to pass theme prop with the inheritance css vars pattern

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only commenting in one place, but this pattern for passing the prop buttonTheme={buttonTheme} can be removed in several places

// &:focus {
border: 1px solid #d0d0d0;
background-color: #191919; // rgba(255, 255, 255, 0.5);
&.glide__dark {

@scott-williams-az scott-williams-az Aug 7, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about the class "glide__dark" if possible stick to inheriting the color from using a global class like gray-faint-bg, gray-light-bg, gray-dark-bg

I am open for discussion, if there were reasons or conflicts with doing it this way that you have already explored 😄

hasPeek = true,
isDraggable = true,
hasShadow = true,
bgColor = "gray-dark-bg"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defaulting bgColor to gray-dark-bg changes Testimonial and Image Gallery carousels. preserve the neutral default and apply dark styling only when passed explicitly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants