Skip to content

Commit c5ea427

Browse files
authored
Merge pull request #605 from dxc-technology/3.11.0
Release 3.11.0
2 parents 9d14434 + a3ac140 commit c5ea427

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+348
-225
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Changelog
22

3+
## 3.10.0 (18/10/2021)
4+
5+
#### Documentation:
6+
7+
- [Sidenav] Update documentation to the new template [#579](https://github.com/dxc-technology/halstack-style-guide/issues/579)
8+
- [Card] Update documentation to the new template [#577](https://github.com/dxc-technology/halstack-style-guide/issues/577)
9+
- [Slider] Documentation fixes [#572](https://github.com/dxc-technology/halstack-style-guide/issues/572)
10+
- [Button] Component updates [#547](https://github.com/dxc-technology/halstack-style-guide/issues/547)
11+
- [Dialog] Documentation review [#443](https://github.com/dxc-technology/halstack-style-guide/issues/443)
12+
- [Alert] Fixes on component specs [#437](https://github.com/dxc-technology/halstack-style-guide/issues/437)
13+
14+
#### Fixes:
15+
16+
- [Slider] Component specs [#224](https://github.com/dxc-technology/halstack-style-guide/issues/224)
17+
18+
#### Site
19+
20+
- [Site] Update changelog [#524](https://github.com/dxc-technology/halstack-style-guide/issues/524)
21+
22+
---
23+
324
## 3.9.0 (01/10/2021)
425

526
#### Documentation:
6.25 MB
Binary file not shown.
44 KB
Binary file not shown.
58.6 KB
Binary file not shown.
51.9 KB
Binary file not shown.
1.09 MB
Binary file not shown.
3.46 KB
Binary file not shown.
84.8 KB
Binary file not shown.

contributing/design.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@
22

33
* [Halstack UI Kit](#halstack-ui-kit)
44
* [Reusing styles across XD documents](#reusing-styles-across-xd-documents)
5+
* [New and deprecated components](#new-and-deprecated-components)
56
* [Working with previous versions](#working-with-previous-versions)
67
* [Design assets](#design-assets)
78
* [Adding new components](#adding-new-components)
89
* [Starting file](#starting-file)
910
* [Naming convention](#naming-convention)
1011
* [States](#states)
1112
* [Variants](#variants)
13+
* [Adding component features](#adding-component-features)
14+
* [New variant](#new-variant)
15+
* [Changing an exisiting variant](#changing-an-existing-variant)
16+
* [Documentation](#documentation)
1217
* [Other contributions](#other-contributions)
1318

1419

@@ -61,6 +66,20 @@ _`optionList` reused inside the select component_
6166

6267
In the case presented above the `select` will be the outer component and the `optionList` will be the nested one. For more infomation about the terminology and how to work with nested components you can check [nested components](https://helpx.adobe.com/xd/help/work-with-nested-components.html) article.
6368

69+
70+
### New and deprecated components
71+
72+
In order to identify wich components in the UI-Kit are new and wich ones are deprecated, we have a color legend that comes with the component when is searched across the document assets search bar:
73+
74+
| Color | Component status | Description |
75+
| :----- | :-------------------- | :---------------------------------------------------------------------------------------------------------------------- |
76+
| 🔴 | Waiting to be removed | The component will be removed soon. If you have any instance of this component in your files, replace for the new ones |
77+
| 🟠 | Deprecated | The component has been deprecated |
78+
| 🟡 | Variant changed | There are changes on this component variant |
79+
| 🟣 | New variant | New component variant in the UI-Kit. Changes are not available yet in CDK's |
80+
| 🟢 | CDK Available | New component variant available in CDK |
81+
82+
6483
### Working with previous versions
6584

6685
If you development team is working with a **previous version of the latest released Halstack CDK**, you can find all the UI Kit files in the [previous releases folder](https://github.com/dxc-technology/halstack-style-guide/tree/master/previous-releases) (Note that if you need to upgrade the version of the components you are using you will need to delete all the instances and relink the again with the proper version/public library)
@@ -173,6 +192,38 @@ Since Adobe XD doesn't support variants, we create them as separate components,
173192

174193
There are specific cases where the differences between component variants aren't big and it is not worthy to use different components, in this case we modify the instances (e.g. icon usage in every button variant)
175194

195+
## Adding component features
196+
197+
When the component already exists but there is a missing feature or changes in a current one the proccess varies depending if it's a new variant of the component or the changes affect an existing one.
198+
199+
### New variant
200+
201+
If you identify a new variant of the component that is not covered by our guidelines you can submit the variant file and the documentation changes in a Pull request to the upstream repository so we can review it and add the variant to the UI-Kit library.
202+
203+
1. Bring the existing component to a new XD file named `component-xyz_variant.xd`
204+
2. Ungroup the component (<kbd>⇧ Shift</kbd><kbd>⌘ Command</kbd><kbd>G</kbd>)
205+
3. Make the component local (<kbd>⌘ Command</kbd><kbd>K</kbd>) and name the variant following the naming convention and adding "🟣 /" as a prefix
206+
4. Work on the new variant
207+
5. Create a new branch in your fork named `component-xyz-variant`
208+
6. Save the file in `contributing/assets/components/variants` folder
209+
210+
### Changing an existing variant
211+
212+
Sometimes the changes affect a variant of the component that already exist, in order to incorporate those changes in our component library we need the to have the new component variant and deprecate the previous to make everyone aware wich component should use.
213+
214+
1. Bring the existing component from the library to a new XD file named `component-xyz_update.xd`
215+
2. Ungroup the component (<kbd>⇧ Shift</kbd><kbd>⌘ Command</kbd><kbd>G</kbd>)
216+
3. Make the component local (<kbd>⌘ Command</kbd><kbd>K</kbd>) and keep the previous naming adding "🟡 /" as a prefix
217+
4. Work on the variant changes
218+
5. Create a new branch in your fork named `component-xyz-update`
219+
6. Save the file in `contributing/assets/components/updates` folder
220+
221+
### Documentation
222+
223+
Changes on a component need to be properly documented, before making a PR from your for to the upstream repository ensure you are changing the component README.md file, updating the needed images in order to help other designers and developers understand the changes made in the component.
224+
225+
The [content](https://github.com/dxc-technology/halstack-style-guide/blob/master/contributing/content.md) and [image](https://github.com/dxc-technology/halstack-style-guide/blob/master/contributing/images.md) contribution guidelines will help you in the process of updating documentation of a component.
226+
176227
## Other contributions
177228

178229
We are a small team and maintaining more than one library is time-consuming, although we know that a UI Kit in other design software rather than Adobe XD would be an interesting asset to have. So... if you are interested in bringing those to the halstack ecosystem, our priorities are:

guidelines/components/accordion/README.md

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ The accordion header can get four different states based on user interaction. St
3232
![Accordion anatomy](images/accordion_anatomy.png)
3333

3434
1. Header
35-
2. Active icon (Optional)
36-
3. Active text label
37-
4. Additional information
38-
5. Caret icon for Expand/collapse
35+
2. Custom icon (Optional)
36+
3. Title
37+
4. Helper text (Optional)
38+
5. Caret icon (Expand/collapse)
3939
6. Expanded panel
4040

4141
### Placement and alignment
@@ -86,11 +86,11 @@ the expand/collapse action._
8686

8787
Accordion headers are stacked vertically and different hierarchy levels are allowed.
8888

89-
![image](https://user-images.githubusercontent.com/44420072/114674447-86648a80-9d07-11eb-99fc-acf9cecdcad7.png)
89+
![image](images/accordion_group.png)
9090

9191
_The expandable section of an accordion group can contain different types of plain information or clickable components._
9292

93-
![image](https://user-images.githubusercontent.com/44420072/114674497-94b2a680-9d07-11eb-80f8-5890dc811d6b.png)
93+
![image](images/accordion_multi_expand.png)
9494

9595
_When one accordion panel is expanded, the rest of the group should be collapsed._
9696

@@ -133,14 +133,17 @@ _Component design specifications_
133133
### Color
134134

135135
| Component token | Element | Core token | Value (HEX) |
136-
| ------------------------------------------- | ---------------------------- | -------------------------- | ------------ |
137-
| `titleLabelFontColor` | Label | `color-black` | #000000 |
138-
| `disabledColor` | Label:disabled | `color-grey-400` | #bfbfbf |
136+
| :------------------------------------------ | :--------------------------- | :------------------------- | :----------- |
137+
| `titleLabelFontColor` | Title | `color-black` | #000000 |
138+
| `disabledTitleLabelFontColor` | Title:disabled | `color-grey-500` | #999999 |
139139
| `arrowColor` | Caret icon | `color-purple-700` | #5f249f |
140+
| `disabledArrowColor` | Title:disabled | `color-grey-500` | #999999 |
140141
| `iconColor` | Custom icon | `color-purple-700` | #5f249f |
142+
| `disabledIconColor` | Custom icon:disabled | `color-grey-500` | #999999 |
141143
| `assistiveTextFontColor` | Helper text | `color-grey-700` | #666666 |
144+
| `disabledAssistiveTextFontColor` | Helper text:disabled | `color-grey-500` | #999999 |
142145
| `hoverBackgroundColor` | Header background:hover | `color-purple-100` | #f2eafa |
143-
| `focusBorderColor` | Header outline:focus | `color-purple-700` | #5f249f |
146+
| `focusBorderColor` | Header outline:focus | `color-blue-600` | #0095ff |
144147
| `backgroundColor` | Container background | `color-white` | #ffffff |
145148
| `boxShadowColor` | Container shadow | - | #0000001a |
146149
| `accordionGroupSeparatorBorderColor` | Separator | - | #0000001a |
@@ -150,10 +153,10 @@ _Component design specifications_
150153

151154
| Component token | Element | Core token | Value |
152155
| :------------------------------------------ | :--------------------------- | :---------------------- | :------------------------ |
153-
| `titleLabelFontFamily` | Label | `font-family-sans` | 'Open Sans', sans-serif; |
154-
| `titleLabelFontSize` | Label | `font-scale-03` | 16px |
155-
| `titleLabelFontWeight` | Label | `font-regular` | 400 |
156-
| `titleLabelFontStyle` | Label | `font-normal` | normal |
156+
| `titleLabelFontFamily` | Title | `font-family-sans` | 'Open Sans', sans-serif; |
157+
| `titleLabelFontSize` | Title | `font-scale-03` | 16px |
158+
| `titleLabelFontWeight` | Title | `font-regular` | 400 |
159+
| `titleLabelFontStyle` | Title | `font-normal` | normal |
157160
| `assistiveTextFontFamily` | Helper text | `font-sans` | 'Open Sans', sans-serif; |
158161
| `assistiveTextFontSize` | Helper text | `font-scale-03` | 16px |
159162
| `assistiveTextFontWeight` | Helper text | `font-light` | 300 |
@@ -163,30 +166,38 @@ _Component design specifications_
163166
### Iconography
164167

165168
| Component token | Element | Core token | Value |
166-
| ------------------------------------------- | ---------------------------- | ---------------------- | ------------------------- |
169+
| :------------------------------------------ | :--------------------------- | :--------------------- | :------------------------ |
167170
| `iconSize` | Custom icon/Caret icon | - | 24x24px |
168171

169172

170173
### Border
171174

172175
| Component token | Element | Core token | Value |
173-
| ------------------------------------------- | ---------------------------- | ---------------------- | ------------------------- |
176+
| :------------------------------------------ | :--------------------------- | :--------------------- | :------------------------ |
174177
| `focusBorderStyle` | Header:focus border | `border-style-solid` | solid |
175-
| `focusBorderThickness` | Header:focus border | `border-width-1` | 1px |
178+
| `focusBorderThickness` | Header:focus border | `border-width-2` | 2px |
176179
| `borderRadius` | Accordion container | `border-radius-medium` | 0.25rem / 4px |
177180

178181

179182
### Size
180183

181184
| Property | Element | Core token | Value |
182-
| ------------------------------------------- | ---------------------------- | -------------------- | ------------ |
185+
| :------------------------------------------ | :--------------------------- | :------------------- | :----------- |
183186
| `height` | Header | - | 48px |
184187
| `min-width` | Accordion container | - | 280px |
185188

186189
### Spacing
187190

191+
| Component token | Element | Core token | Value |
192+
| :------------------------------------------ | :--------------------------- | :--------------------- | :------------------------ |
193+
| `titleLabelPaddingRight` | Title | `spacing-05` | 1rem / 16px |
194+
| `titleLabelPaddingLeft` | Title | `spacing-00` | 0rem / 0px |
195+
| `titleLabelPaddingTop` | Title | `spacing-00` | 0rem / 0px |
196+
| `titleLabelPaddingBottom` | Title | `spacing-00` | 0rem / 0px |
197+
198+
188199
| Property | Element | Core token | Value |
189-
| ------------------------------------------- | ---------------------------- | -------------------- | ------------ |
200+
| :------------------------------------------ | :--------------------------- | :------------------- | :----------- |
190201
| `padding-left` | Header | `spacing-05` | 16px |
191202
| `padding-right` | Header | `spacing-05` | 16px |
192203
| `padding-right` | Helper text | `spacing-06` | 24px |

0 commit comments

Comments
 (0)