I added the minimal padding because gl-action-neutral-colors comes with a bg color on hover.
@danmh I appreciate the improvements from the diff. I took it a step further and added the ability to reset each example instead of needing to refresh the page.
One thing I'd like to be able to do for this example is use action colors instead of neutral to differentiate the text a bit more like what's mentioned in the appearance, but I see that gl-action-neutral-colors in /packages/gitlab-ui/tailwind.defaults.js doesn't have an action counterpart. Should it? If not,m I can approximate with existing utilities, but could be confusing since it's not done like the neutral example.
Jeremy Elder (c4af5a5f) at 18 Mar 21:56
Followup batch 3
@danmh I got a bit outside of myself there and had to circle back to the previous thinking. You're exactly right. For that reason I reverted some of the appearance language and updated the examples.
Applied locally and this is working well.
@sdejonge is Storybook something we directly want to promote contributing to as part of this section? I'm under the impression that we're slowly ramping down on SB use and don't want to indicate the opposite. Aside from that I don't have a concern, but wonder if it'd be good for others to weigh in too.
Update progress bar to use the full border radius design token (gl-rounded-full / 9999px) instead of the default radius, to match the fully-rounded appearance shown #2565.
This follows up on !5753 which introduced gl-rounded-default, but the approved design in #2565 calls for a fully-rounded border radius.
Visual change: the progress bar track will have fully-rounded ends (border-radius: 9999px) instead of the default 0.25rem.
Relates to #2565 (border-radius portion)
@mle I was only nudging old issues and assessing if our team labels were applied correctly, happy to close, thanks!
Abstract square avatar border radius into two new design tokens.
avatar.square.border.radius.defaultavatar.square.border.radius.lgUse the design tokens in the avatar component.
Removes override on the breadcrumb component to inherit the changes.
| Before | After |
|---|---|
![]() |
![]() |
|
|
|
--- a/packages/gitlab-ui/src/components/base/avatar/avatar.stories.js
+++ b/packages/gitlab-ui/src/components/base/avatar/avatar.stories.js
@@ -119,6 +119,20 @@ FallbackOnAvatarLoadFailure = (args, { argTypes }) => ({
});
FallbackOnAvatarLoadFailure.args = { ...generateProjectFallbackProps(), ...generateImageProps() };
+export const NonSquareImageAllSizes = () => ({
+ components,
+ template: `
+ <div class="gl-flex gl-gap-3 gl-items-center">
+ <gl-avatar
+ v-for="size in [16, 24, 32, 48, 64, 96]"
+ :key="size"
+ :size="size"
+ shape="rect"
+ src="proxy.php?url=./img/avatar_non_square.jpg"
+ />
+ </div>
+ `,
+});
+
export const AllIdenticons = () => ({
components,
template: `
This checklist encourages the authors, reviewers, and maintainers of merge requests (MRs) to confirm changes were analyzed for conformity with the project's guidelines, security and accessibility.
~"component:*" label(s) if applicable.If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:
@gitlab-com/gl-security/appsec
If this MR adds or modifies a component, take a few moments to review the following:
aria-label for icons that have meaning or perform actions.aria-expanded="false" to aria-expanded="true" when an accordion is expanded.Related to #3363
@danmh perfect! (I always read the related issue link as the referring issue so missed the connection.)
Thank you for the helpful explanation, I'll get this closed!
Closing as the different use cases between native select and dropdowns are captures in the design system.