benjaminkott / benjaminkott/bootstrap_package

Responsive border classes

Open
#1,169 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
PHP
Stars
355
Forks
212
Avg merge
1h 4m
Merged PRs (30d)
31

Description

Hi!

I'm trying to enable responsive classes for borders as described [here](https://getbootstrap.com/docs/5.1/utilities/api/#enable-responsive). But when I add the code (see below) after importing the bootstrap5 theme, it gets ignored. If I import bootstrap-utlities first, add the code and after that import the theme, I get the responsive classes but lose some settings (e.g. negative margins)... Does anyone have an idea how to realize this?

```
$utilities: map-merge(
$utilities,
(
"border": map-merge(
map-get($utilities, "border"),
( responsive: true ),
),
"border-top": map-merge(
map-get($utilities, "border-top"),
( responsive: true ),
),
"border-end": map-merge(
map-get($utilities, "border-end"),
( responsive: true ),
),
"border-bottom": map-merge(
map-get($utilities, "border-bottom"),
( responsive: true ),
),
"border-start": map-merge(
map-get($utilities, "border-start"),
( responsive: true ),
),
)
);
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Bootstrap 5.1 utilities API linked in the issue, then inspect the provided Sass configuration and its import order. Confirm which import preserves the theme settings while enabling responsive border classes; done means responsive border utilities work without losing options such as negative margins.

Written by the indexing model from the issue text.

Assessment

Tech stack
bootstrap, sass
Domain
frontend, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.