-
Notifications
You must be signed in to change notification settings - Fork 16
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
State tags use different styling in the campaigns section #77
Comments
@clarkepaul here's the badge variations: https://silverstripe.github.io/silverstripe-admin/?knob-message=Hello%20World&knob-status=default&selectedKind=Admin%2FBadges&selectedStory=Badge&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybooks%2Fstorybook-addon-knobs I think what you're referring to here is a legacy badge style - the ones in the storybook are React badge component states. We may need to add a new one that has a transparent background while still using the same text colours before we can implement this in campaign-admin - thoughts? Perhaps like the inverted state but with a transparent bg |
PR at silverstripe/silverstripe-admin#817 for the transparent badges. I think the orange used in the screenshot is different from the badges in the pattern library, so we may need to add a new state, or update the "warning" state to use that colour instead |
Yeah having a transparent set would work well so cheers! The way I see it, we would be able to set the background as either: no class (slightly rounded square) , badge-pill, or badge-transparent (I'd imagine in Storybook there is a radio to toggle between the three options if possible for testing). .badge-transparent could then be used to start replacing all of the older status-flag's through out the CMS. Not sure if you've done this @robbieaverill but can the transparent version have no padding left and right please? |
I can add no left and right padding, but a little unsure how that works with the terminology of "transparent". We could add another modifier like |
So I'm going to update the PR at silverstripe/silverstripe-admin#817 to use
(example code only, colours may need adjusting) |
I've made a new PR which adds a new versioned badge component, essentially a lightweight wrapper around Badge with some specific styles for this use case. See silverstripe/silverstripe-admin#861 |
PR at #140 |
Admin PR is merged, so we can now implement the new |
The badges for draft/modified in the campaigns sections use an older style and need to updated to reflect the style without a background as per gridfields.
If there isn't a reusable style for the newer style one should be created so it can be used throughout the CMS.
Was:
Should be:
The text was updated successfully, but these errors were encountered: