dibk-design 1.1.7 → 1.1.9
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.
|
@@ -74,9 +74,10 @@ var Accordion = /*#__PURE__*/function (_React$Component) {
|
|
|
74
74
|
}, {
|
|
75
75
|
key: "renderPanel",
|
|
76
76
|
value: function renderPanel() {
|
|
77
|
-
return /*#__PURE__*/_react.default.createElement("
|
|
77
|
+
return /*#__PURE__*/_react.default.createElement("button", {
|
|
78
78
|
className: _AccordionModule.default.panel,
|
|
79
|
-
onClick: this.handleToggleExpand
|
|
79
|
+
onClick: this.handleToggleExpand,
|
|
80
|
+
"aria-expanded": this.state.expanded ? 'true' : 'false'
|
|
80
81
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
81
82
|
className: _AccordionModule.default.panelText
|
|
82
83
|
}, this.props.title), /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -152,6 +152,8 @@
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
:local(.panel) {
|
|
155
|
+
@include appearance(none);
|
|
156
|
+
@include border-radius(0);
|
|
155
157
|
padding: 15px 15px;
|
|
156
158
|
display: flex;
|
|
157
159
|
align-items: center;
|
|
@@ -160,9 +162,19 @@
|
|
|
160
162
|
overflow-wrap: break-word;
|
|
161
163
|
line-height: 1.7;
|
|
162
164
|
cursor: pointer;
|
|
165
|
+
border: none;
|
|
166
|
+
width: 100%;
|
|
167
|
+
background: none;
|
|
168
|
+
text-align: left;
|
|
163
169
|
@media only screen and (min-width: $screen-sm) {
|
|
164
170
|
padding: 15px 30px;
|
|
165
171
|
}
|
|
172
|
+
&:focus-visible {
|
|
173
|
+
outline-color: $color-focus-outline;
|
|
174
|
+
outline-style: auto;
|
|
175
|
+
outline-width: 2px;
|
|
176
|
+
outline-offset: 0px;
|
|
177
|
+
}
|
|
166
178
|
:local(.panelText) {
|
|
167
179
|
font-family: $heading-font;
|
|
168
180
|
font-weight: bold;
|