dibk-design 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -164,6 +164,7 @@ var DragAndDropFileInput = /*#__PURE__*/function (_React$Component) {
|
|
|
164
164
|
onChange: this.props.onSelectChange
|
|
165
165
|
}), this.props.buttonContent ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, this.props.selectedFileName ? '' : 'eller klikk på knappen for å velge fil'), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
166
166
|
size: "small",
|
|
167
|
+
type: "button",
|
|
167
168
|
color: this.props.buttonColor,
|
|
168
169
|
onClick: function onClick() {
|
|
169
170
|
return _this2.handleAddButtonOnClick();
|
|
@@ -141,6 +141,7 @@ var InputField = /*#__PURE__*/function (_React$Component) {
|
|
|
141
141
|
document.getElementById(_this2.props.id).click();
|
|
142
142
|
},
|
|
143
143
|
content: this.props.buttonContent,
|
|
144
|
+
type: "button",
|
|
144
145
|
theme: this.props.theme
|
|
145
146
|
}) : null) : null), !this.props.contentOnly ? /*#__PURE__*/_react.default.createElement("input", this.getInputElementProps(defaultValue, defaultKey, styleRules)) : /*#__PURE__*/_react.default.createElement("span", null, this.renderValueAsText(this.props.value || this.props.defaultValue, this.props.defaultContent)), /*#__PURE__*/_react.default.createElement(_ErrorMessage.default, {
|
|
146
147
|
content: this.props.errorMessage,
|
|
@@ -184,10 +184,13 @@ var NavigationBar = /*#__PURE__*/function (_React$Component) {
|
|
|
184
184
|
}, this.renderLogo(this.props.logoLink)), this.props.children ? /*#__PURE__*/_react.default.createElement("div", {
|
|
185
185
|
className: _NavigationBarModule.default.childElements
|
|
186
186
|
}, this.props.children) : '', this.props.primaryListItems && this.props.primaryListItems.length || this.props.secondaryListItems && this.props.secondaryListItems.length ? /*#__PURE__*/_react.default.createElement("button", {
|
|
187
|
+
type: "button",
|
|
187
188
|
className: "".concat(_NavigationBarModule.default.menuToggle, " ").concat(this.state.active ? _NavigationBarModule.default.active : ''),
|
|
188
189
|
onClick: function onClick() {
|
|
189
190
|
return _this4.toggleList();
|
|
190
|
-
}
|
|
191
|
+
},
|
|
192
|
+
"aria-expanded": this.state.active ? 'true' : 'false',
|
|
193
|
+
"aria-controls": "main-menu-dropdown"
|
|
191
194
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
192
195
|
className: _NavigationBarModule.default.hamburgerIcon
|
|
193
196
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -202,6 +205,7 @@ var NavigationBar = /*#__PURE__*/function (_React$Component) {
|
|
|
202
205
|
}))) : ''), /*#__PURE__*/_react.default.createElement("div", {
|
|
203
206
|
className: "".concat(_NavigationBarModule.default.dropdownContainer, " ").concat(this.state.active ? _NavigationBarModule.default.active : '')
|
|
204
207
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
208
|
+
id: "main-menu-dropdown",
|
|
205
209
|
className: _NavigationBarModule.default.dropdown,
|
|
206
210
|
style: navigationBarThemeStyle
|
|
207
211
|
}, this.renderPrimaryList(), this.renderSecondaryList(), this.props.children)), /*#__PURE__*/_react.default.createElement("div", {
|