Skip to content

Commit d90f6ac

Browse files
committed
feat: Remove Label component
BREAKING CHANGE: Label has been removed with no replacement
1 parent b619845 commit d90f6ac

File tree

7 files changed

+0
-123
lines changed

7 files changed

+0
-123
lines changed

docs/styleguide.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ module.exports = {
113113
'../react/FileInput',
114114
'../react/legacy/Input',
115115
'../react/InputGroup',
116-
'../react/Label',
117116
'../react/LoadMore',
118117
'../react/Page',
119118
'../react/PasswordExample',

react/Label/Readme.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

react/Label/index.jsx

Lines changed: 0 additions & 41 deletions
This file was deleted.

react/Label/styles.styl

Lines changed: 0 additions & 7 deletions
This file was deleted.

react/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export {
3939
} from './deprecated/ActionMenu'
4040
export { default as ActionsMenu } from './ActionsMenu'
4141
export { default as Overlay } from './deprecated/Overlay'
42-
export { default as Label } from './Label'
4342
export { default as Checkbox } from './Checkbox'
4443
export { default as Radio } from './deprecated/Radio'
4544
export { default as Textarea } from './Textarea'

stylus/components/forms.styl

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -225,21 +225,6 @@ $form-progress
225225
background var(--dividerColor)
226226
border-radius rem(18)
227227

228-
// New styles
229-
$label
230-
text-transform uppercase
231-
color var(--secondaryTextColor)
232-
font-size rem(13)
233-
font-weight bold
234-
line-height rem(16)
235-
236-
&.is-error
237-
color var(--errorColor)
238-
239-
$label--block
240-
display block
241-
padding rem(8) 0
242-
243228
$input--disabled
244229
cursor not-allowed
245230
background-color var(--actionColorDisabledBackground)

stylus/cozy-ui/build.styl

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -269,26 +269,6 @@
269269
270270
*/
271271

272-
/*
273-
Label
274-
275-
Label element coupled with any other form elements like inputs, textareas, select,etc
276-
277-
Markup:
278-
<form>
279-
<div>
280-
<label class="c-label {{modifier_class}}" for="">Hello, I'm a label</label>
281-
</div>
282-
</form>
283-
284-
.is-error - Error variant
285-
286-
Weight: 1
287-
288-
Styleguide Components.form.label
289-
*/
290-
@require '../../react/Label/styles.styl'
291-
292272
/*
293273
Input text
294274

0 commit comments

Comments
 (0)