playbook_ui 14.3.1.pre.alpha.PBNTR515typeaheadmarginbottomredux3746 → 14.3.1.pre.alpha.PBNTR515typeaheadmarginbottomredux3747

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f422119e094bb65421697ac44567037f7dc9f7c1a6fa490b696245accea173d2
4
- data.tar.gz: a9513ac152f0b28da77fcd545c9c288b1935d46c90f2c7e777b85a8edd57a2c5
3
+ metadata.gz: 5e51693286c99e9ba35ead99c19a2901cb27b9f229683f88217dc34de7f18a7b
4
+ data.tar.gz: 2dc4818138b9e67c4c825031da74bef3757ed72fbb91ff1e96761a748a09e5b7
5
5
  SHA512:
6
- metadata.gz: c717f2203155c2e7acfee431ba79a78e6e6f392a3bc4fe57b50063067ad217fb95304818a563aa1009dc6369f95952dcbee28ca6746aeee8f5af1d891d85a873
7
- data.tar.gz: a23cf73a0bbcd1cf5482469fc3786f1c857bceb090ab7f5e1fed709ff022ad95246b34be5be65d0696e55cb8c971ec4f145c9e17f94ed7855861f348c7cf05c2
6
+ metadata.gz: 5e498d8ca21f944b1efe6e288bdd02d85bb95b0971df18663da160cf7f03f4e0529c38326a74ca6a7843c396bee867b75482dfa4659a7c66ef95af550854e4e9
7
+ data.tar.gz: 4b3cc3370f6924a0cf974a7222701885ca40770f373f9019b816321765a3e9e31c19b244378199a3a8dcbcb8bb02587700bed068a545e43277fe6d4fa96da514
@@ -92,7 +92,6 @@ const Textarea = ({
92
92
  <Caption text={label} />
93
93
  {children || (
94
94
  <textarea
95
- className="pb_textarea_kit"
96
95
  disabled={disabled}
97
96
  name={name}
98
97
  onChange={onChange}
@@ -15,7 +15,6 @@
15
15
  <%= text_area(
16
16
  :object,
17
17
  :method,
18
- :class => "#{object.classname}",
19
18
  :max_characters => object.max_characters,
20
19
  :name => object.name,
21
20
  :onkeyup => object.onkeyup,
@@ -107,4 +107,18 @@ test('should pass className prop', () => {
107
107
 
108
108
  const kit = screen.getByTestId('typeahead-test')
109
109
  expect(kit).toHaveClass(className)
110
+ })
111
+
112
+ test('typeahead textinput has mb_sm class by default', () => {
113
+ render(
114
+ <Typeahead
115
+ data={{ testid: 'default-mb-test' }}
116
+ options={options}
117
+ />
118
+ )
119
+
120
+ const kit = screen.getByTestId('default-mb-test')
121
+ expect(kit).toHaveClass("pb_typeahead_kit mb_sm")
122
+ const textInput = kit.querySelector(".pb_text_input_kit")
123
+ expect(textInput).toHaveClass("mb_none")
110
124
  })
@@ -3,7 +3,6 @@ import { components } from 'react-select'
3
3
 
4
4
  import Flex from '../../pb_flex/_flex'
5
5
  import TextInput from '../../pb_text_input/_text_input'
6
- import { MarginBottomType } from '../_typeahead'
7
6
 
8
7
 
9
8
  type Props = {