diff --git a/lib/components/Method/method.html b/lib/components/Method/method.html
index 88213fed..73552a09 100644
--- a/lib/components/Method/method.html
+++ b/lib/components/Method/method.html
@@ -11,9 +11,7 @@
diff --git a/lib/components/ResponsesList/responses-list.html b/lib/components/ResponsesList/responses-list.html
index da570486..de664014 100644
--- a/lib/components/ResponsesList/responses-list.html
+++ b/lib/components/ResponsesList/responses-list.html
@@ -1,23 +1,6 @@
-
-
-
- Responses |
-
-
- Code |
- Description |
- Response schema |
-
-
-
-
- {{response.code}} |
- |
-
-
-
- N/A
- |
-
-
-
+
+
+
+
+
diff --git a/lib/components/ResponsesList/responses-list.js b/lib/components/ResponsesList/responses-list.js
index a03bf31b..d5d5c3bd 100644
--- a/lib/components/ResponsesList/responses-list.js
+++ b/lib/components/ResponsesList/responses-list.js
@@ -3,6 +3,8 @@
import {RedocComponent, BaseComponent} from '../base';
import JsonPointer from '../../utils/JsonPointer';
import JsonSchemaView from '../JsonSchemaView/json-schema-view';
+import {Zippy} from '../../common/components/Zippy/zippy';
+import {statusCodeType} from '../../utils/helpers';
function isNumeric(n) {
return (!isNaN(parseFloat(n)) && isFinite(n));
@@ -12,7 +14,7 @@ function isNumeric(n) {
selector: 'responses-list',
templateUrl: './lib/components/ResponsesList/responses-list.html',
styleUrls: ['./lib/components/ResponsesList/responses-list.css'],
- directives: [JsonSchemaView]
+ directives: [JsonSchemaView, Zippy]
})
export default class ResponsesList extends BaseComponent {
constructor(schemaMgr) {
@@ -35,6 +37,7 @@ export default class ResponsesList extends BaseComponent {
}
resp.code = respCode;
+ resp.type = statusCodeType(resp.code);
return resp;
});
this.data.responses = responses;
diff --git a/lib/components/ResponsesList/responses-list.scss b/lib/components/ResponsesList/responses-list.scss
index a300a156..ffd96479 100644
--- a/lib/components/ResponsesList/responses-list.scss
+++ b/lib/components/ResponsesList/responses-list.scss
@@ -1,44 +1,6 @@
-small {
- color: #999;
-}
-
-table {
- width: 100%;
- border-spacing: 0;
- border: 2px solid darkgreen;
-}
-
-th.response-code {
- width: 10%;
-}
-
-th.response-description {
- width: 30%;
-}
-
-thead tr:first-child {
- background: darkgreen;
- color: #fff;
- border: none;
-}
-
-thead tr:last-child th {
- border-bottom: 3px solid #ddd;
-}
-
-tbody tr:last-child td {
- border: none;
-}
-tbody td {
- border-bottom: 1px solid #ddd;
-}
-
-td, th {
- vertical-align: top;
- padding: 10px 10px;
- font-size: 12px;
-}
-
-th {
- text-align: left;
+.responses-list-header {
+ font-size: 18px;
+ padding: 0.2em 0;
+ margin: 0.5em 0;
+ color: #253137;
}